@signalwire/compatibility-api
Version:
SignalWire Compatibility API
69 lines (58 loc) • 1.77 kB
JavaScript
;
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var CommandList = require('./wireless/command').CommandList;
var RatePlanList = require('./wireless/ratePlan').RatePlanList;
var SimList = require('./wireless/sim').SimList;
var Version = require('../../base/Version'); /* jshint ignore:line */
/* jshint ignore:start */
/**
* Initialize the Wireless version of Preview
*
* @constructor Twilio.Preview.Wireless
*
* @property {Twilio.Preview.Wireless.CommandList} commands - commands resource
* @property {Twilio.Preview.Wireless.RatePlanList} ratePlans - ratePlans resource
* @property {Twilio.Preview.Wireless.SimList} sims - sims resource
*
* @param {Twilio.Preview} domain - The twilio domain
*/
/* jshint ignore:end */
function Wireless(domain) {
Version.prototype.constructor.call(this, domain, 'wireless');
// Resources
this._commands = undefined;
this._ratePlans = undefined;
this._sims = undefined;
}
_.extend(Wireless.prototype, Version.prototype);
Wireless.prototype.constructor = Wireless;
Object.defineProperty(Wireless.prototype,
'commands', {
get: function() {
this._commands = this._commands || new CommandList(this);
return this._commands;
}
});
Object.defineProperty(Wireless.prototype,
'ratePlans', {
get: function() {
this._ratePlans = this._ratePlans || new RatePlanList(this);
return this._ratePlans;
}
});
Object.defineProperty(Wireless.prototype,
'sims', {
get: function() {
this._sims = this._sims || new SimList(this);
return this._sims;
}
});
module.exports = Wireless;