bria
Version:
CounterPath Bria Desktop API for Node.js
66 lines • 2.89 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var BriaRequest_1 = __importDefault(require("./BriaRequest"));
var sxml_1 = __importDefault(require("sxml"));
var StartScreenshareRequest = /** @class */ (function (_super) {
__extends(StartScreenshareRequest, _super);
function StartScreenshareRequest(invitees) {
var _a;
var _this = _super.call(this, 'startScreenShare', 'invitees') || this;
var invs = invitees.map(function (invitee) {
var inv = new sxml_1.default.XML();
inv.setTag('invitee');
inv.insertValue('address', invitee.address);
inv.get('address').at(0).setProperty('type', invitee.type);
return inv;
});
(_a = _this.xml) === null || _a === void 0 ? void 0 : _a.push.apply(_a, __spreadArray([], __read(invs), false));
return _this;
}
return StartScreenshareRequest;
}(BriaRequest_1.default));
exports.default = StartScreenshareRequest;
//# sourceMappingURL=StartScreenshareRequest.js.map