CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 Close.java 源代码,内容仅作参考
package org.jivesoftware.smackx.bytestreams.ibb.packet;
import org.jivesoftware.smack.packet.IQ;
public class Close extends IQ {
public static final String ELEMENT = "close";
public static final String NAMESPACE = "http://jabber.org/protocol/ibb";
private final String sessionID;
public Close(String str) {
super(ELEMENT, "http://jabber.org/protocol/ibb");
if (str != null && !"".equals(str)) {
this.sessionID = str;
setType(IQ.Type.set);
return;
}
throw new IllegalArgumentException("Session ID must not be null or empty");
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.attribute("sid", this.sessionID);
iQChildElementXmlStringBuilder.setEmptyElement();
return iQChildElementXmlStringBuilder;
}
public String getSessionID() {
return this.sessionID;
}
}