UNPKG

mindee

Version:

Mindee Client Library for Node.js

20 lines (19 loc) 585 B
/** * PaginationMetadata data associated with model search. */ export class PaginationMetadata { constructor(serverResponse) { this.perPage = serverResponse["per_page"]; this.page = serverResponse["page"]; this.totalItems = serverResponse["total_items"]; this.totalPages = serverResponse["total_pages"]; } toString() { return [ `:Per Page: ${this.perPage}`, `:Page: ${this.page}`, `:Total Items: ${this.totalItems}`, `:Total Pages: ${this.totalPages}`, ].join("\n"); } }