aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-29 16:26:14 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 16:01:26 +0300
commite6fdd5dd10efa29029aa6babf821c429084d786f (patch)
treec3a392307e0d204082b8d2c7292013c84ed368e0 /src/wallet/api/transaction_info.cpp
parentmerged with upstream (diff)
downloadmonero-e6fdd5dd10efa29029aa6babf821c429084d786f.tar.xz
TransactionHistory continued
Diffstat (limited to 'src/wallet/api/transaction_info.cpp')
-rw-r--r--src/wallet/api/transaction_info.cpp17
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