@signalwire/compatibility-api
Version:
SignalWire Compatibility API
98 lines (83 loc) • 2.32 kB
JavaScript
;
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var Domain = require('../base/Domain'); /* jshint ignore:line */
var V1 = require('./video/V1'); /* jshint ignore:line */
/* jshint ignore:start */
/**
* Initialize video domain
*
* @constructor Twilio.Video
*
* @property {Twilio.Video.V1} v1 - v1 version
* @property {Twilio.Video.V1.CompositionList} compositions - compositions resource
* @property {Twilio.Video.V1.CompositionHookList} compositionHooks -
* compositionHooks resource
* @property {Twilio.Video.V1.CompositionSettingsList} compositionSettings -
* compositionSettings resource
* @property {Twilio.Video.V1.RecordingList} recordings - recordings resource
* @property {Twilio.Video.V1.RecordingSettingsList} recordingSettings -
* recordingSettings resource
* @property {Twilio.Video.V1.RoomList} rooms - rooms resource
*
* @param {Twilio} twilio - The twilio client
*/
/* jshint ignore:end */
function Video(twilio) {
Domain.prototype.constructor.call(this, twilio, 'https://video.twilio.com');
// Versions
this._v1 = undefined;
}
_.extend(Video.prototype, Domain.prototype);
Video.prototype.constructor = Video;
Object.defineProperty(Video.prototype,
'v1', {
get: function() {
this._v1 = this._v1 || new V1(this);
return this._v1;
}
});
Object.defineProperty(Video.prototype,
'compositions', {
get: function() {
return this.v1.compositions;
}
});
Object.defineProperty(Video.prototype,
'compositionHooks', {
get: function() {
return this.v1.compositionHooks;
}
});
Object.defineProperty(Video.prototype,
'compositionSettings', {
get: function() {
return this.v1.compositionSettings;
}
});
Object.defineProperty(Video.prototype,
'recordings', {
get: function() {
return this.v1.recordings;
}
});
Object.defineProperty(Video.prototype,
'recordingSettings', {
get: function() {
return this.v1.recordingSettings;
}
});
Object.defineProperty(Video.prototype,
'rooms', {
get: function() {
return this.v1.rooms;
}
});
module.exports = Video;