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

namespace td {
namespace protocol {

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

	WritePacketID(data, packetID);
	data << m_TPS << m_MSPT << m_PacketSendTime;
	return data;
}

void ServerTpsPacket::Deserialize(DataBuffer& data) {
	data >> m_TPS >> m_MSPT >> m_PacketSendTime;
}

} // namespace protocol
} // namespace td
