UNPKG

genesys-workspace-client-js

Version:
106 lines (86 loc) 2.62 kB
/** * 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'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.WorkspaceApi) { root.WorkspaceApi = {}; } root.WorkspaceApi.Slot = factory(root.WorkspaceApi.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Slot model module. * @module model/Slot * @version 9.0.000.97.4639 */ /** * Constructs a new <code>Slot</code>. * @alias module:model/Slot * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Slot</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/Slot} obj Optional instance to populate. * @return {module:model/Slot} The populated <code>Slot</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('utcTime')) { obj['utcTime'] = ApiClient.convertToType(data['utcTime'], 'String'); } if (data.hasOwnProperty('localTime')) { obj['localTime'] = ApiClient.convertToType(data['localTime'], 'String'); } if (data.hasOwnProperty('capacity')) { obj['capacity'] = ApiClient.convertToType(data['capacity'], 'Number'); } if (data.hasOwnProperty('total')) { obj['total'] = ApiClient.convertToType(data['total'], 'Number'); } } return obj; } /** * @member {String} utcTime */ exports.prototype['utcTime'] = undefined; /** * @member {String} localTime */ exports.prototype['localTime'] = undefined; /** * @member {Number} capacity */ exports.prototype['capacity'] = undefined; /** * @member {Number} total */ exports.prototype['total'] = undefined; return exports; }));