UNPKG

@flexvertex/flexvertex-driver

Version:

The official FlexVertex Node.js driver

42 lines (32 loc) 952 B
export class FlexResult { #schema; #author = ""; #comment = ""; #duration = -1; #tab = ""; #title = ""; constructor(schema, responseData) { if(!(schema === undefined)) this.#schema = schema; if(!(responseData === undefined)) { if(!(responseData.Author === undefined)) this.#author = responseData.Author; if(!(responseData.Comment === undefined)) this.#comment = responseData.Comment; if(!(responseData.Duration === undefined)) this.#duration = responseData.Duration; if(!(responseData.Tab === undefined)) this.#tab = responseData.Tab; if(!(responseData.Title === undefined)) this.#title = responseData.Title; } } get schema() { return this.#schema; } get author() { return this.#author; } get comment() { return this.#comment; } get duration() { return this.#duration; } get tab() { return this.#tab; } get title() { return this.#title; } }