28 lines
788 B
C++
28 lines
788 B
C++
/*
|
|
* Copyright (c) 2011 Jan Kaluza
|
|
* Licensed under the Simplified BSD license.
|
|
* See Documentation/Licenses/BSD-simplified.txt for more information.
|
|
*/
|
|
|
|
#include <transport/BlockSerializer.h>
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
#include <Swiften/Serializer/XML/XMLTextNode.h>
|
|
#include <Swiften/Serializer/XML/XMLRawTextNode.h>
|
|
#include <Swiften/Serializer/XML/XMLElement.h>
|
|
|
|
namespace Transport {
|
|
|
|
// This payload is NOT part of ANY XEP and it is only
|
|
// libtransport related extension.
|
|
BlockSerializer::BlockSerializer() : Swift::GenericPayloadSerializer<BlockPayload>() {
|
|
}
|
|
|
|
std::string BlockSerializer::serializePayload(boost::shared_ptr<BlockPayload> attention) const {
|
|
Swift::XMLElement attentionElement("block", "urn:xmpp:block:0");
|
|
|
|
return attentionElement.serialize();
|
|
}
|
|
|
|
}
|