UNPKG

mindee

Version:

Mindee Client Library for Node.js

21 lines (20 loc) 680 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InferenceFile = void 0; class InferenceFile { constructor(serverResponse) { this.name = serverResponse["name"]; this.alias = serverResponse["alias"]; this.pageCount = serverResponse["page_count"]; this.mimeType = serverResponse["mime_type"]; } toString() { return ("File\n" + "====\n" + `:Name: ${this.name}\n` + `:Alias:${this.alias ? " " + this.alias : ""}\n`) + `:Page Count: ${this.pageCount}\n` + `:MIME Type: ${this.mimeType}\n`; } } exports.InferenceFile = InferenceFile;