UNPKG

maestro-cli-roku

Version:

command line tools for maestro-roku projects

22 lines (21 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BindingType_1 = require("./BindingType"); var BindingProperties = /** @class */ (function () { function BindingProperties(type, isSettingInitialValue, transformFunction, isFiringOnce) { if (type === void 0) { type = BindingType_1.BindingType.invalid; } if (isSettingInitialValue === void 0) { isSettingInitialValue = true; } if (transformFunction === void 0) { transformFunction = null; } if (isFiringOnce === void 0) { isFiringOnce = false; } this.type = type; this.isSettingInitialValue = isSettingInitialValue; this.transformFunction = transformFunction; this.isFiringOnce = isFiringOnce; } BindingProperties.prototype.getBrsText = function () { // tslint:disable-next-line:max-line-length return "[" + (this.isSettingInitialValue ? 'true' : 'false') + ", " + (this.transformFunction ? "" + this.transformFunction : 'invalid') + ", " + (this.isFiringOnce ? 'true' : 'false') + "]"; }; return BindingProperties; }()); exports.BindingProperties = BindingProperties;