UNPKG

@goplus/sdk-node

Version:
65 lines (60 loc) 2.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseWrapperTokenSecurityFakeToken = void 0; var _ApiClient = require("../ApiClient"); /* * GoPlus Security API Document * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 3.0.45 * * Do not edit the class manually. * */ /** * The ResponseWrapperTokenSecurityFakeToken model module. * @module model/ResponseWrapperTokenSecurityFakeToken * @version 1.0 */ class ResponseWrapperTokenSecurityFakeToken { /** * Constructs a new <code>ResponseWrapperTokenSecurityFakeToken</code>. * It indicates whether the token is a counterfeit of a mainstream asset. (If there is no evidence indicating that it is a counterfeit asset, there will be no return.) * @alias module:model/ResponseWrapperTokenSecurityFakeToken * @class */ constructor() {} /** * Constructs a <code>ResponseWrapperTokenSecurityFakeToken</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/ResponseWrapperTokenSecurityFakeToken} obj Optional instance to populate. * @return {module:model/ResponseWrapperTokenSecurityFakeToken} The populated <code>ResponseWrapperTokenSecurityFakeToken</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ResponseWrapperTokenSecurityFakeToken(); if (data.hasOwnProperty('true_token_address')) obj.true_token_address = _ApiClient.ApiClient.convertToType(data['true_token_address'], 'String'); if (data.hasOwnProperty('value')) obj.value = _ApiClient.ApiClient.convertToType(data['value'], 'Number'); } return obj; } } /** * If the value is set to 1, and true_token_address is the address of the authentic mainstream asset that the token is imitating on this public chain. If there are multiple mainstream assets with the same name, they will be separated by commas. * @member {String} true_token_address */ exports.ResponseWrapperTokenSecurityFakeToken = ResponseWrapperTokenSecurityFakeToken; ResponseWrapperTokenSecurityFakeToken.prototype.true_token_address = undefined; /** * If the value is set to 1, and true_token_address is the address of the authentic mainstream asset that the token is imitating on this public chain. If there are multiple mainstream assets with the same name, they will be separated by commas. * @member {Number} value */ ResponseWrapperTokenSecurityFakeToken.prototype.value = undefined;