/* * Copyright (c) 2017 Tarun Gupta * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include #include #include using namespace Swift; MIXDestroySerializer::MIXDestroySerializer() { } MIXDestroySerializer::~MIXDestroySerializer() { } std::string MIXDestroySerializer::serializePayload(std::shared_ptr payload) const { if (!payload) { return ""; } XMLElement element("destroy", "urn:xmpp:mix:0"); element.setAttribute("channel", payload->getChannel()); return element.serialize(); }