diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-22 13:21:08 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-23 15:50:33 +0300 |
commit | d500272fa87bea70054e1f97e1d64741721722bf (patch) | |
tree | 6736284bbf6c008a8e70954ca20c0d7d87ef5915 /src/wallet/api/transaction_info.cpp | |
parent | transaction history api in progress (diff) | |
download | monero-d500272fa87bea70054e1f97e1d64741721722bf.tar.xz |
Wallet API : transaction history in progress
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/transaction_info.cpp | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/wallet/api/transaction_info.cpp b/src/wallet/api/transaction_info.cpp index 8de4e555f..578b84832 100644 --- a/src/wallet/api/transaction_info.cpp +++ b/src/wallet/api/transaction_info.cpp @@ -35,7 +35,16 @@ using namespace std; namespace Bitmonero { +TransactionInfo::~TransactionInfo() {} + TransactionInfoImpl::TransactionInfoImpl() + : m_direction(Direction_Out) + , m_hold(false) + , m_failed(false) + , m_amount(0) + , m_fee(0) + , m_blockheight(0) + , m_timestamp(0) { } @@ -53,37 +62,42 @@ int TransactionInfoImpl::direction() const bool TransactionInfoImpl::isHold() const { - return false; + return m_hold; } bool TransactionInfoImpl::isFailed() const { - return false; + return m_failed; } uint64_t TransactionInfoImpl::amount() const { - return 0; + return m_amount; } uint64_t TransactionInfoImpl::fee() const { - return 0; + return m_fee; +} + +uint64_t TransactionInfoImpl::blockHeight() const +{ + return m_blockheight; } -string TransactionInfoImpl::address() const +string TransactionInfoImpl::hash() const { - return ""; + return m_hash; } std::time_t TransactionInfoImpl::timestamp() const { - return std::time_t(0); + return m_timestamp; } string TransactionInfoImpl::paymentId() const { - return ""; + return m_paymentid; } } // namespace |