/* * Copyright (c) 2011 Tobias Markmann * Licensed under the BSD license. * See http://www.opensource.org/licenses/bsd-license.php for more information. */ /* * Copyright (c) 2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include #include namespace Swift { DeliveryReceiptSerializer::DeliveryReceiptSerializer() : GenericPayloadSerializer() { } std::string DeliveryReceiptSerializer::serializePayload(std::shared_ptr receipt) const { XMLElement received("received", "urn:xmpp:receipts"); received.setAttribute("id", receipt->getReceivedID()); return received.serialize(); } }