UNPKG

mindee

Version:

Mindee Client Library for Node.js

17 lines (16 loc) 539 B
export 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`; } }