Refactored model/ItemsResult.
This commit is contained in:
parent
6496104e30
commit
96634eb911
|
|
@ -55,6 +55,7 @@ import { Images } from "./model/Images";
|
||||||
import { Item } from "./model/Item";
|
import { Item } from "./model/Item";
|
||||||
import { ItemIdType } from "./model/ItemIdType";
|
import { ItemIdType } from "./model/ItemIdType";
|
||||||
import { ItemInfo } from "./model/ItemInfo";
|
import { ItemInfo } from "./model/ItemInfo";
|
||||||
|
import { ItemsResult } from "./model/ItemsResult";
|
||||||
import { Languages } from "./model/Languages";
|
import { Languages } from "./model/Languages";
|
||||||
import { LanguageType } from "./model/LanguageType";
|
import { LanguageType } from "./model/LanguageType";
|
||||||
import { ManufactureInfo } from "./model/ManufactureInfo";
|
import { ManufactureInfo } from "./model/ManufactureInfo";
|
||||||
|
|
|
||||||
|
|
@ -21,42 +21,25 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient', 'model/Item'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./Item'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.ItemsResult = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Item);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, Item) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The ItemsResult model module.
|
* The ItemsResult model module.
|
||||||
* @module model/ItemsResult
|
* @module model/ItemsResult
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
import { ApiClient } from "../ApiClient";
|
||||||
|
import { Item } from "./Item";
|
||||||
|
|
||||||
|
/**
|
||||||
* Constructs a new <code>ItemsResult</code>.
|
* Constructs a new <code>ItemsResult</code>.
|
||||||
* @alias module:model/ItemsResult
|
* @alias module:model/ItemsResult
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class ItemsResult {
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {Array.<module:model/Item>} Items
|
||||||
|
*/
|
||||||
};
|
public Items?: Item[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ItemsResult</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ItemsResult</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -65,25 +48,14 @@
|
||||||
* @param {module:model/ItemsResult} obj Optional instance to populate.
|
* @param {module:model/ItemsResult} obj Optional instance to populate.
|
||||||
* @return {module:model/ItemsResult} The populated <code>ItemsResult</code> instance.
|
* @return {module:model/ItemsResult} The populated <code>ItemsResult</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: ItemsResult) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ItemsResult();
|
||||||
|
|
||||||
if (data.hasOwnProperty('Items')) {
|
if (data.hasOwnProperty('Items')) {
|
||||||
obj['Items'] = ApiClient.convertToType(data['Items'], [Item]);
|
obj.Items = ApiClient.convertToType(data['Items'], [Item]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {Array.<module:model/Item>} Items
|
|
||||||
*/
|
|
||||||
exports.prototype['Items'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user