Files
@ ad7e5ebbbec2
Branch filter:
Location: libtransport.git/include/Swiften/Serializer/PayloadSerializers/AttentionSerializer.cpp - annotation
ad7e5ebbbec2
741 B
text/x-c++hdr
Merge pull request #39 from vitalyster/master
AdHocCommand: fix empty response when user is not registered or storage ...
AdHocCommand: fix empty response when user is not registered or storage ...
d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 d6c003bad3b6 | /*
* Copyright (c) 2011 Jan Kaluza
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <Swiften/Serializer/PayloadSerializers/AttentionSerializer.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 Swift {
AttentionSerializer::AttentionSerializer() : GenericPayloadSerializer<AttentionPayload>() {
}
std::string AttentionSerializer::serializePayload(boost::shared_ptr<AttentionPayload> attention) const {
XMLElement attentionElement("attention", "urn:xmpp:attention:0");
return attentionElement.serialize();
}
}
|