Files
@ f592dc0ef3a6
Branch filter:
Location: libtransport.git/spectrum/src/frontends/xmpp/BlockSerializer.cpp - annotation
f592dc0ef3a6
778 B
text/x-c++hdr
Reconnect to Slack RTM when disconnected with an error
8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 fe47e0979be9 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 b3725b47c4ba 8ee031044843 8ee031044843 8ee031044843 91aa5e9c77d1 8ee031044843 8ee031044843 8ee031044843 b3725b47c4ba 8ee031044843 8ee031044843 8ee031044843 8ee031044843 8ee031044843 | /*
* Copyright (c) 2011 Jan Kaluza
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <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();
}
}
|