@goplus/sdk-node
Version:
GoPlus API SDK for Node.js
72 lines (66 loc) • 3.7 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ResponseWrapperGetNftInfoResultPrivilegedBurn = 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 ResponseWrapperGetNftInfoResultPrivilegedBurn model module.
* @module model/ResponseWrapperGetNftInfoResultPrivilegedBurn
* @version 1.0
*/
class ResponseWrapperGetNftInfoResultPrivilegedBurn {
/**
* Constructs a new <code>ResponseWrapperGetNftInfoResultPrivilegedBurn</code>.
* It describes whether the NFT owner can burn others NFT.(Notice:Privileged_burn means that the owner can burn others' NFTs directly through the method.)
* @alias module:model/ResponseWrapperGetNftInfoResultPrivilegedBurn
* @class
*/
constructor() {}
/**
* Constructs a <code>ResponseWrapperGetNftInfoResultPrivilegedBurn</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/ResponseWrapperGetNftInfoResultPrivilegedBurn} obj Optional instance to populate.
* @return {module:model/ResponseWrapperGetNftInfoResultPrivilegedBurn} The populated <code>ResponseWrapperGetNftInfoResultPrivilegedBurn</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResponseWrapperGetNftInfoResultPrivilegedBurn();
if (data.hasOwnProperty('owner_address')) obj.owner_address = _ApiClient.ApiClient.convertToType(data['owner_address'], 'String');
if (data.hasOwnProperty('value')) obj.value = _ApiClient.ApiClient.convertToType(data['value'], 'Number');
if (data.hasOwnProperty('owner_type')) obj.owner_type = _ApiClient.ApiClient.convertToType(data['owner_type'], 'String');
}
return obj;
}
}
/**
* Owner_address describes the owner address. null: the owner address cannot be fetched.
* @member {String} owner_address
*/
exports.ResponseWrapperGetNftInfoResultPrivilegedBurn = ResponseWrapperGetNftInfoResultPrivilegedBurn;
ResponseWrapperGetNftInfoResultPrivilegedBurn.prototype.owner_address = undefined;
/**
* The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array.
* @member {Number} value
*/
ResponseWrapperGetNftInfoResultPrivilegedBurn.prototype.value = undefined;
/**
* \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\": the owner is an array/list. null: the address is not detected.
* @member {String} owner_type
*/
ResponseWrapperGetNftInfoResultPrivilegedBurn.prototype.owner_type = undefined;
;