aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-22 13:21:08 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 15:50:33 +0300
commitd500272fa87bea70054e1f97e1d64741721722bf (patch)
tree6736284bbf6c008a8e70954ca20c0d7d87ef5915 /src/wallet/api/transaction_info.cpp
parenttransaction history api in progress (diff)
downloadmonero-d500272fa87bea70054e1f97e1d64741721722bf.tar.xz
Wallet API : transaction history in progress
Diffstat (limited to '')
-rw-r--r--src/wallet/api/transaction_info.cpp30
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