Files
xahaud/src/cpp/ripple/Offer.h
2012-12-04 12:30:41 -08:00

21 lines
517 B
C++

#include "AccountItems.h"
class Offer : public AccountItem
{
RippleAddress mAccount;
STAmount mTakerGets;
STAmount mTakerPays;
Offer(SerializedLedgerEntry::pointer ledgerEntry); // For accounts in a ledger
public:
Offer(){}
AccountItem::pointer makeItem(const uint160&, SerializedLedgerEntry::ref ledgerEntry);
LedgerEntryType getType(){ return(ltOFFER); }
STAmount getTakerPays(){ return(mTakerPays); }
STAmount getTakerGets(){ return(mTakerGets); }
RippleAddress getAccount(){ return(mAccount); }
};