mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
32 lines
641 B
C++
32 lines
641 B
C++
#include "Response.h"
|
|
|
|
namespace model {
|
|
namespace hedera {
|
|
Response::Response()
|
|
{
|
|
}
|
|
|
|
Response::~Response()
|
|
{
|
|
|
|
}
|
|
|
|
Poco::UInt64 Response::getAccountBalance()
|
|
{
|
|
if (isCryptoGetAccountBalanceResponse()) {
|
|
auto balance_response = mResponseProto.cryptogetaccountbalance();
|
|
return balance_response.balance();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
proto::ResponseCodeEnum Response::getResponseCode()
|
|
{
|
|
if (isCryptoGetAccountBalanceResponse()) {
|
|
auto balance_response = mResponseProto.cryptogetaccountbalance();
|
|
return balance_response.header().nodetransactionprecheckcode();
|
|
}
|
|
return proto::NOT_SUPPORTED;
|
|
}
|
|
}
|
|
} |