package asmack.org.jivesoftware.smackx.packet; import androidx.core.app.NotificationCompat; import asmack.org.jivesoftware.smack.packet.PacketExtension; public class PEPEvent implements PacketExtension { PEPItem item; public PEPEvent() { } public PEPEvent(PEPItem pEPItem) { this.item = pEPItem; } public void addPEPItem(PEPItem pEPItem) { this.item = pEPItem; } @Override // asmack.org.jivesoftware.smack.packet.PacketExtension public String getElementName() { return NotificationCompat.CATEGORY_EVENT; } @Override // asmack.org.jivesoftware.smack.packet.PacketExtension public String getNamespace() { return "http://jabber.org/protocol/pubsub"; } @Override // asmack.org.jivesoftware.smack.packet.PacketExtension public String toXML() { return "<" + getElementName() + " xmlns=\"" + getNamespace() + "\">" + this.item.toXML() + "</" + getElementName() + ">"; } }