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

namespace td {
namespace protocol {

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

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

void UpdateMoneyPacket::Deserialize(DataBuffer& data) {
	data >> m_NewAmount;
}

} // namespace protocol
} // namespace td
