@goplus/sdk-node
Version:
GoPlus API SDK for Node.js
93 lines (84 loc) • 4.17 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ResponseWrapperSolanaTokenSecurityHolders = void 0;
var _ApiClient = require("../ApiClient");
var _ResponseWrapperSolanaTokenSecurityLockedDetail = require("./ResponseWrapperSolanaTokenSecurityLockedDetail");
/*
* 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 ResponseWrapperSolanaTokenSecurityHolders model module.
* @module model/ResponseWrapperSolanaTokenSecurityHolders
* @version 1.0
*/
class ResponseWrapperSolanaTokenSecurityHolders {
/**
* Constructs a new <code>ResponseWrapperSolanaTokenSecurityHolders</code>.
* @alias module:model/ResponseWrapperSolanaTokenSecurityHolders
* @class
*/
constructor() {}
/**
* Constructs a <code>ResponseWrapperSolanaTokenSecurityHolders</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/ResponseWrapperSolanaTokenSecurityHolders} obj Optional instance to populate.
* @return {module:model/ResponseWrapperSolanaTokenSecurityHolders} The populated <code>ResponseWrapperSolanaTokenSecurityHolders</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResponseWrapperSolanaTokenSecurityHolders();
if (data.hasOwnProperty('is_locked')) obj.is_locked = _ApiClient.ApiClient.convertToType(data['is_locked'], 'Number');
if (data.hasOwnProperty('balance')) obj.balance = _ApiClient.ApiClient.convertToType(data['balance'], 'String');
if (data.hasOwnProperty('locked_detail')) obj.locked_detail = _ApiClient.ApiClient.convertToType(data['locked_detail'], [_ResponseWrapperSolanaTokenSecurityLockedDetail.ResponseWrapperSolanaTokenSecurityLockedDetail]);
if (data.hasOwnProperty('token_account')) obj.token_account = _ApiClient.ApiClient.convertToType(data['token_account'], 'String');
if (data.hasOwnProperty('tag')) obj.tag = _ApiClient.ApiClient.convertToType(data['tag'], 'String');
if (data.hasOwnProperty('percent')) obj.percent = _ApiClient.ApiClient.convertToType(data['percent'], 'String');
}
return obj;
}
}
/**
* It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) 'tag' describes the address's public tag. Example:Burn (Notice:About \"locked\":We only support the token lock addresses or black hole addresses that we have included. )
* @member {Number} is_locked
*/
exports.ResponseWrapperSolanaTokenSecurityHolders = ResponseWrapperSolanaTokenSecurityHolders;
ResponseWrapperSolanaTokenSecurityHolders.prototype.is_locked = undefined;
/**
* Amount of tokens held.
* @member {String} balance
*/
ResponseWrapperSolanaTokenSecurityHolders.prototype.balance = undefined;
/**
* It is an array, decribes lock position info of this holder, only shows when \"locked\":1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.)
* @member {Array.<module:model/ResponseWrapperSolanaTokenSecurityLockedDetail>} locked_detail
*/
ResponseWrapperSolanaTokenSecurityHolders.prototype.locked_detail = undefined;
/**
* Address of the holder.
* @member {String} token_account
*/
ResponseWrapperSolanaTokenSecurityHolders.prototype.token_account = undefined;
/**
* Tag information of the holder.
* @member {String} tag
*/
ResponseWrapperSolanaTokenSecurityHolders.prototype.tag = undefined;
/**
* Percentage of total supply held.
* @member {String} percent
*/
ResponseWrapperSolanaTokenSecurityHolders.prototype.percent = undefined;
;