genesys-workspace-client-js
Version:
Workspace application API used by Workspace Web Edition
92 lines (75 loc) • 2.9 kB
JavaScript
/**
* Workspace API
* Agent API
*
* OpenAPI spec version: 9.0.000.97.4639
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.5
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/SubscriptionsSuccessResponseData', 'model/TargetsResponseStatus'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./SubscriptionsSuccessResponseData'), require('./TargetsResponseStatus'));
} else {
// Browser globals (root is window)
if (!root.WorkspaceApi) {
root.WorkspaceApi = {};
}
root.WorkspaceApi.SubscriptionsSuccessResponse = factory(root.WorkspaceApi.ApiClient, root.WorkspaceApi.SubscriptionsSuccessResponseData, root.WorkspaceApi.TargetsResponseStatus);
}
}(this, function(ApiClient, SubscriptionsSuccessResponseData, TargetsResponseStatus) {
'use strict';
/**
* The SubscriptionsSuccessResponse model module.
* @module model/SubscriptionsSuccessResponse
* @version 9.0.000.97.4639
*/
/**
* Constructs a new <code>SubscriptionsSuccessResponse</code>.
* Request succeeded.
* @alias module:model/SubscriptionsSuccessResponse
* @class
* @param status {module:model/TargetsResponseStatus}
*/
var exports = function(status) {
var _this = this;
_this['status'] = status;
};
/**
* Constructs a <code>SubscriptionsSuccessResponse</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/SubscriptionsSuccessResponse} obj Optional instance to populate.
* @return {module:model/SubscriptionsSuccessResponse} The populated <code>SubscriptionsSuccessResponse</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('status')) {
obj['status'] = TargetsResponseStatus.constructFromObject(data['status']);
}
if (data.hasOwnProperty('data')) {
obj['data'] = SubscriptionsSuccessResponseData.constructFromObject(data['data']);
}
}
return obj;
}
/**
* @member {module:model/TargetsResponseStatus} status
*/
exports.prototype['status'] = undefined;
/**
* @member {module:model/SubscriptionsSuccessResponseData} data
*/
exports.prototype['data'] = undefined;
return exports;
}));