32 #ifndef LEDGER_CORE_RIPPLELIKETRANSACTIONSBULKPARSER_H 33 #define LEDGER_CORE_RIPPLELIKETRANSACTIONSBULKPARSER_H 35 #include "../RippleLikeBlockchainExplorer.h" 36 #include "RippleLikeTransactionsParser.h" 37 #include <wallet/common/explorers/api/AbstractTransactionsBulkParser.h> 41 class RippleLikeBlockchainExplorer;
47 _transactionsParser(lastKey) {
52 if (_depth >= 1 || getLastKey() ==
"transactions") {
57 getTransactionsParser().init(&_bulk->transactions);
60 PROXY_PARSE_TXS(StartArray)
63 bool String(
const rapidjson::Reader::Ch *str, rapidjson::SizeType length,
bool copy) {
64 std::string value = std::string(str, length);
65 if (_depth == 0 && getLastKey() ==
"marker") {
66 _bulk->marker = value;
68 PROXY_PARSE_TXS(
String, str, length, copy)
72 PROXY_PARSE_TXS(Bool, b)
78 return _transactionsParser;
81 std::string &getLastKey()
override {
87 std::string &_lastKey;
92 #endif //LEDGER_CORE_RIPPLELIKETRANSACTIONSBULKPARSER_H Definition: RippleLikeTransactionsBulkParser.h:43
Definition: RippleLikeTransactionsParser.h:41
Definition: Account.cpp:8
Definition: AbstractTransactionsBulkParser.h:45