/* * Copyright (c) 2013 Remko Tronçon * Licensed under the GNU General Public License. * See the COPYING file for more information. */ #pragma clang diagnostic ignored "-Wunused-private-field" #include #include #include using namespace Swift; PubSubOwnerPurgeSerializer::PubSubOwnerPurgeSerializer(PayloadSerializerCollection* serializers) : serializers(serializers) { } PubSubOwnerPurgeSerializer::~PubSubOwnerPurgeSerializer() { } std::string PubSubOwnerPurgeSerializer::serializePayload(boost::shared_ptr payload) const { if (!payload) { return ""; } XMLElement element("purge", "http://jabber.org/protocol/pubsub#owner"); element.setAttribute("node", payload->getNode()); return element.serialize(); }