aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
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