Refactored model/TechnicalInfo.
This commit is contained in:
parent
ccfa4e267f
commit
6f313822c0
|
|
@ -80,6 +80,7 @@ import { SearchRefinements } from "./model/SearchRefinements";
|
||||||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||||
|
import { TechnicalInfo } from "./model/TechnicalInfo";
|
||||||
import { TradeInPrice } from "./model/TradeInPrice";
|
import { TradeInPrice } from "./model/TradeInPrice";
|
||||||
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
||||||
import { VariationDimension } from "./model/VariationDimension";
|
import { VariationDimension } from "./model/VariationDimension";
|
||||||
|
|
|
||||||
|
|
@ -21,43 +21,29 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient', 'model/MultiValuedAttribute', 'model/SingleStringValuedAttribute'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./MultiValuedAttribute'), require('./SingleStringValuedAttribute'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.TechnicalInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.MultiValuedAttribute, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, MultiValuedAttribute, SingleStringValuedAttribute) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The TechnicalInfo model module.
|
* The TechnicalInfo model module.
|
||||||
* @module model/TechnicalInfo
|
* @module model/TechnicalInfo
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
||||||
|
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||||
|
|
||||||
|
/**
|
||||||
* Constructs a new <code>TechnicalInfo</code>.
|
* Constructs a new <code>TechnicalInfo</code>.
|
||||||
* @alias module:model/TechnicalInfo
|
* @alias module:model/TechnicalInfo
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class TechnicalInfo {
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {module:model/SingleStringValuedAttribute} EnergyEfficiencyClass
|
||||||
|
*/
|
||||||
|
public EnergyEfficiencyClass?: SingleStringValuedAttribute;
|
||||||
};
|
/**
|
||||||
|
* @member {module:model/MultiValuedAttribute} Formats
|
||||||
|
*/
|
||||||
|
public Formats?: MultiValuedAttribute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>TechnicalInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>TechnicalInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -66,32 +52,17 @@
|
||||||
* @param {module:model/TechnicalInfo} obj Optional instance to populate.
|
* @param {module:model/TechnicalInfo} obj Optional instance to populate.
|
||||||
* @return {module:model/TechnicalInfo} The populated <code>TechnicalInfo</code> instance.
|
* @return {module:model/TechnicalInfo} The populated <code>TechnicalInfo</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: TechnicalInfo) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new TechnicalInfo();
|
||||||
|
|
||||||
if (data.hasOwnProperty('EnergyEfficiencyClass')) {
|
if (data.hasOwnProperty('EnergyEfficiencyClass')) {
|
||||||
obj['EnergyEfficiencyClass'] = SingleStringValuedAttribute.constructFromObject(data['EnergyEfficiencyClass']);
|
obj.EnergyEfficiencyClass = SingleStringValuedAttribute.constructFromObject(data['EnergyEfficiencyClass']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Formats')) {
|
if (data.hasOwnProperty('Formats')) {
|
||||||
obj['Formats'] = MultiValuedAttribute.constructFromObject(data['Formats']);
|
obj.Formats = MultiValuedAttribute.constructFromObject(data['Formats']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {module:model/SingleStringValuedAttribute} EnergyEfficiencyClass
|
|
||||||
*/
|
|
||||||
exports.prototype['EnergyEfficiencyClass'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/MultiValuedAttribute} Formats
|
|
||||||
*/
|
|
||||||
exports.prototype['Formats'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user