UNPKG

cache-typescript-sdk

Version:
29 lines 899 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Pageable_1 = require("./Pageable"); /** * @internal */ class IncomingTransactionsPageable extends Pageable_1.Pageable { constructor(source, address, params) { super(); this.resource = source; this.address = address; this.params = params; } nextPage() { this.resource.incomingTransactions(this.address, this.params).subscribe((next) => { if (next.length != 0) { this.params.id = next[next.length - 1].getTransactionInfo().id; this.next(next); } else { this.complete(); } }, (err) => { this.error(err); }); } } exports.IncomingTransactionsPageable = IncomingTransactionsPageable; //# sourceMappingURL=IncomingTransactionsPageable.js.map