#include "td/protocol/packets/ConnectionInfoPacket.h"

namespace td {
namespace protocol {

DataBuffer ConnexionInfoPacket::Serialize(bool packetID) const {
	DataBuffer data;

	WritePacketID(data, packetID);
	data << m_ConnectionID;
	return data;
}

void ConnexionInfoPacket::Deserialize(DataBuffer& data) {
	data >> m_ConnectionID;
}

} // namespace protocol
} // namespace td
