思特奇智慧酒店云平台 v0.0.5版本的 MD5 值为:dedb172bb322639d79d7e0e26262fb5c
以下内容为反编译后的 MUCOwner.java 源代码,内容仅作参考
package org.jivesoftware.smackx.muc.packet;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.jivesoftware.smack.packet.IQ;
public class MUCOwner extends IQ {
public static final String ELEMENT = "query";
public static final String NAMESPACE = "http://jabber.org/protocol/muc#owner";
public Destroy destroy;
public final List<MUCItem> items;
public MUCOwner() {
super("query", NAMESPACE);
this.items = new ArrayList();
}
public void addItem(MUCItem mUCItem) {
synchronized (this.items) {
this.items.add(mUCItem);
}
}
public Destroy getDestroy() {
return this.destroy;
}
@Override
public IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.rightAngleBracket();
synchronized (this.items) {
for (MUCItem mUCItem : this.items) {
iQChildElementXmlStringBuilder.append(mUCItem.toXML((String) null));
}
}
iQChildElementXmlStringBuilder.optElement(getDestroy());
return iQChildElementXmlStringBuilder;
}
public List<MUCItem> getItems() {
List<MUCItem> unmodifiableList;
synchronized (this.items) {
unmodifiableList = Collections.unmodifiableList(new ArrayList(this.items));
}
return unmodifiableList;
}
public void setDestroy(Destroy destroy) {
this.destroy = destroy;
}
}