bool Order::Load(PacketBase& packet) { if (!packet.ReadDbl(m_lfAmount, 16)) return false; if (!packet.ReadDbl(m_lfMinQty, 16)) return false; if (!packet.ReadDbl(m_lfLotSize, 16)) return false; if (!packet.ReadString(m_strOrderID, 15)) return false; return true; }
bool HotspotFxNewOrderMessage::Load ( PacketBase& packet ) { if (!packet.ReadChar(m_cBuyOrSell)) return false; if (!packet.ReadString(m_strCurrencyPair, 7)) return false; if (!packet.ReadString(m_strOrderID, 15)) return false; if (!packet.ReadString(m_strPrice, 10)) return false; if (!packet.ReadDbl(m_lfAmount, 16)) return false; if (!packet.ReadDbl(m_lfMinQty, 16)) return false; if (!packet.ReadDbl(m_lfLotSize, 16)) return false; return MessageBase::Load(packet); }