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

namespace td {
namespace protocol {

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

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

void DisconnectPacket::Deserialize(DataBuffer& data) {
	data >> m_Reason;
}

} // namespace protocol
} // namespace td
