UNPKG

forge-apis

Version:

⚠️ Deprecated: This package is no longer maintained. Use 'https://github.com/autodesk-platform-services/aps-sdk-node' instead.

151 lines (134 loc) 5.34 kB
/** * Forge SDK * The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering. * * Contact: forge.help@autodesk.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ module.exports = (function () { 'use strict'; var ApiClient = require('../ApiClient'); /** * The UserProfileProfileImages model module. * @module model/UserProfileProfileImages */ /** * Constructs a <code>UserProfileProfileImages</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/UserProfileProfileImages} obj Optional instance to populate. * @return {module:model/UserProfileProfileImages} The populated <code>UserProfileProfileImages</code> instance. */ var constructFromObject = function (data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('sizeX20')) { obj.sizeX20 = ApiClient.convertToType(data.sizeX20, 'String'); } if (data.hasOwnProperty('sizeX40')) { obj.sizeX40 = ApiClient.convertToType(data.sizeX40, 'String'); } if (data.hasOwnProperty('sizeX50')) { obj.sizeX50 = ApiClient.convertToType(data.sizeX50, 'String'); } if (data.hasOwnProperty('sizeX58')) { obj.sizeX58 = ApiClient.convertToType(data.sizeX58, 'String'); } if (data.hasOwnProperty('sizeX80')) { obj.sizeX80 = ApiClient.convertToType(data.sizeX80, 'String'); } if (data.hasOwnProperty('sizeX120')) { obj.sizeX120 = ApiClient.convertToType(data.sizeX120, 'String'); } if (data.hasOwnProperty('sizeX160')) { obj.sizeX160 = ApiClient.convertToType(data.sizeX160, 'String'); } if (data.hasOwnProperty('sizeX176')) { obj.sizeX176 = ApiClient.convertToType(data.sizeX176, 'String'); } if (data.hasOwnProperty('sizeX240')) { obj.sizeX240 = ApiClient.convertToType(data.sizeX240, 'String'); } if (data.hasOwnProperty('sizeX360')) { obj.sizeX360 = ApiClient.convertToType(data.sizeX360, 'String'); } } return obj; }; /** * Constructs a new <code>UserProfileProfileImages</code>. * A flat JSON object of attribute-value pairs in which the attributes specify available profile image sizes in the format sizeX&lt;pixels&gt; (where &lt;pixels&gt; is an integer that represents both height and width in pixels of square profile images) and the values are URLs for downloading the images via HTTP * @alias module:model/UserProfileProfileImages * @class * @param {Object} theData The plain JavaScript object bearing properties of interest. * @param {module:model/UserProfileProfileImages} obj Optional instance to populate. */ var exports = function (theData, obj) { var _this = this; return constructFromObject(theData, obj || _this); }; /** * Constructs a <code>UserProfileProfileImages</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/UserProfileProfileImages} obj Optional instance to populate. * @return {module:model/UserProfileProfileImages} The populated <code>UserProfileProfileImages</code> instance. */ exports.constructFromObject = constructFromObject; /** * @member {String} sizeX20 */ exports.prototype.sizeX20 = undefined; /** * @member {String} sizeX40 */ exports.prototype.sizeX40 = undefined; /** * @member {String} sizeX50 */ exports.prototype.sizeX50 = undefined; /** * @member {String} sizeX58 */ exports.prototype.sizeX58 = undefined; /** * @member {String} sizeX80 */ exports.prototype.sizeX80 = undefined; /** * @member {String} sizeX120 */ exports.prototype.sizeX120 = undefined; /** * @member {String} sizeX160 */ exports.prototype.sizeX160 = undefined; /** * @member {String} sizeX176 */ exports.prototype.sizeX176 = undefined; /** * @member {String} sizeX240 */ exports.prototype.sizeX240 = undefined; /** * @member {String} sizeX360 */ exports.prototype.sizeX360 = undefined; return exports; }());