diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-29 16:26:14 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-29 16:26:14 +0300 |
commit | 93119344ecb3326b452f2f8e91bc101fe1896f8c (patch) | |
tree | 5cb9575138b9f87d8c505c636d26403c23ad1584 /src/wallet/api/transaction_info.cpp | |
parent | merged with upstream (diff) | |
download | monero-93119344ecb3326b452f2f8e91bc101fe1896f8c.tar.xz |
TransactionHistory continued
Diffstat (limited to 'src/wallet/api/transaction_info.cpp')
-rw-r--r-- | src/wallet/api/transaction_info.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/wallet/api/transaction_info.cpp b/src/wallet/api/transaction_info.cpp index 578b84832..f25c53a90 100644 --- a/src/wallet/api/transaction_info.cpp +++ b/src/wallet/api/transaction_info.cpp @@ -37,9 +37,13 @@ namespace Bitmonero { TransactionInfo::~TransactionInfo() {} +TransactionInfo::Transfer::Transfer(uint64_t _amount, const string &_address) + : amount(_amount), address(_address) {} + + TransactionInfoImpl::TransactionInfoImpl() : m_direction(Direction_Out) - , m_hold(false) + , m_pending(false) , m_failed(false) , m_amount(0) , m_fee(0) @@ -56,13 +60,13 @@ TransactionInfoImpl::~TransactionInfoImpl() int TransactionInfoImpl::direction() const { - return TransactionInfo::Direction_In; + return m_direction; } -bool TransactionInfoImpl::isHold() const +bool TransactionInfoImpl::isPending() const { - return m_hold; + return m_pending; } bool TransactionInfoImpl::isFailed() const @@ -100,4 +104,9 @@ string TransactionInfoImpl::paymentId() const return m_paymentid; } +const std::vector<TransactionInfo::Transfer> &TransactionInfoImpl::transfers() const +{ + return m_transfers; +} + } // namespace |