OTToken::OTToken() : ot_super(), m_bPasswordProtected(false), m_lDenomination(0), m_nTokenCount(0), m_nChosenIndex(0), m_nSeries(0), m_State(blankToken), m_bSavePrivateKeys(false) { InitToken(); }
OTToken::OTToken(const OTIdentifier & SERVER_ID, const OTIdentifier & ASSET_ID) : ot_super(SERVER_ID, ASSET_ID), m_bPasswordProtected(false), m_lDenomination(0), m_nTokenCount(0), m_nChosenIndex(0), m_nSeries(0), m_State(blankToken), m_bSavePrivateKeys(false) { InitToken(); // m_ServerID and m_AssetTypeID are now in the parent class (OTInstrument) // So they are initialized there now. }
OTToken::OTToken(const OTPurse & thePurse) : ot_super(), m_bPasswordProtected(false), m_lDenomination(0), m_nTokenCount(0), m_nChosenIndex(0), m_nSeries(0), m_State(blankToken), m_bSavePrivateKeys(false) { InitToken(); // These are in the parent class, OTInstrument. // I set them here because the "Purse" argument only exists // in this subclass constructor, not the base. m_ServerID = thePurse.GetServerID(); m_AssetTypeID = thePurse.GetAssetID(); }
//------------------------------------------------------------------------------ FBasicToken::FBasicToken() { InitToken(); }