UNPKG

@iletimerkezi/iletimerkezi-node

Version:
27 lines 809 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BlacklistResponse = void 0; const BaseResponse_1 = require("./BaseResponse"); class BlacklistResponse extends BaseResponse_1.BaseResponse { constructor(data, statusCode, page) { super(data, statusCode); this.page = page; } getCount() { return this.data?.blacklist?.count || 0; } getNumbers() { return this.data?.blacklist?.number || []; } getTotalPages() { return Math.ceil(this.getCount() / (this.page * 1000)); } getCurrentPage() { return this.page; } hasMorePages() { return this.getCurrentPage() < this.getTotalPages(); } } exports.BlacklistResponse = BlacklistResponse; //# sourceMappingURL=BlacklistResponse.js.map