@hachther/mesomb
Version:
JS client for browser to perform mobile payment operation with MeSomb
32 lines (31 loc) • 937 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Abstract class for paginated responses.
*
* @template T - The type of the results.
*
* @property {number} count - The total number of results.
* @property {string} next - The URL for the next page.
* @property {string} previous - The URL for the previous page.
* @property {T[]} results - The list of results.
*/
var APaginated = /** @class */ (function () {
function APaginated(data) {
this.data = data;
this.count = data.count;
this.next = data.next;
this.previous = data.previous;
this.results = data.results;
}
/**
* Get the data received from the server.
*
* @return {Record<string, any>} The data received from the server.
*/
APaginated.prototype.getData = function () {
return this.data;
};
return APaginated;
}());
exports.default = APaginated;
;