@goplus/sdk-node
Version:
GoPlus API SDK for Node.js
64 lines (59 loc) • 2.48 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ResponseWrapperSolanaTokenSecurityTransferHook = 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 ResponseWrapperSolanaTokenSecurityTransferHook model module.
* @module model/ResponseWrapperSolanaTokenSecurityTransferHook
* @version 1.0
*/
class ResponseWrapperSolanaTokenSecurityTransferHook {
/**
* Constructs a new <code>ResponseWrapperSolanaTokenSecurityTransferHook</code>.
* @alias module:model/ResponseWrapperSolanaTokenSecurityTransferHook
* @class
*/
constructor() {}
/**
* Constructs a <code>ResponseWrapperSolanaTokenSecurityTransferHook</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/ResponseWrapperSolanaTokenSecurityTransferHook} obj Optional instance to populate.
* @return {module:model/ResponseWrapperSolanaTokenSecurityTransferHook} The populated <code>ResponseWrapperSolanaTokenSecurityTransferHook</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResponseWrapperSolanaTokenSecurityTransferHook();
if (data.hasOwnProperty('address')) obj.address = _ApiClient.ApiClient.convertToType(data['address'], 'String');
if (data.hasOwnProperty('malicious_address')) obj.malicious_address = _ApiClient.ApiClient.convertToType(data['malicious_address'], 'Number');
}
return obj;
}
}
/**
* Address of the hook.
* @member {String} address
*/
exports.ResponseWrapperSolanaTokenSecurityTransferHook = ResponseWrapperSolanaTokenSecurityTransferHook;
ResponseWrapperSolanaTokenSecurityTransferHook.prototype.address = undefined;
/**
* Indicates whether the address is malicious, \"1\" means yes.
* @member {Number} malicious_address
*/
ResponseWrapperSolanaTokenSecurityTransferHook.prototype.malicious_address = undefined;
;