UNPKG

genesys-authentication-client-js

Version:
98 lines (79 loc) 2.5 kB
/** * Authentication API * Authentication API * * OpenAPI spec version: 9.0.000.68.2560 * * 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.AuthenticationApi) { root.AuthenticationApi = {}; } root.AuthenticationApi.ResponseStatus = factory(root.AuthenticationApi.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The ResponseStatus model module. * @module model/ResponseStatus * @version 9.0.000.68.2560 */ /** * Constructs a new <code>ResponseStatus</code>. * @alias module:model/ResponseStatus * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>ResponseStatus</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/ResponseStatus} obj Optional instance to populate. * @return {module:model/ResponseStatus} The populated <code>ResponseStatus</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'Number'); } if (data.hasOwnProperty('detail')) { obj['detail'] = ApiClient.convertToType(data['detail'], Object); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } } return obj; } /** * @member {Number} code */ exports.prototype['code'] = undefined; /** * @member {Object} detail */ exports.prototype['detail'] = undefined; /** * @member {String} message */ exports.prototype['message'] = undefined; return exports; }));