blob: 424c6fca7babe08a2d4a0c9a5ce33fac7bc5810e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Copyright (c) 2015-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#include <Swiften/Serializer/PayloadSerializers/CarbonsEnableSerializer.h>
#include <Swiften/Serializer/XML/XMLElement.h>
namespace Swift {
CarbonsEnableSerializer::CarbonsEnableSerializer() : GenericPayloadSerializer<CarbonsEnable>() {
}
CarbonsEnableSerializer::~CarbonsEnableSerializer() {
}
std::string CarbonsEnableSerializer::serializePayload(std::shared_ptr<CarbonsEnable>) const {
XMLElement element("enable", "urn:xmpp:carbons:2");
return element.serialize();
}
}
|