UNPKG

@goplus/sdk-node

Version:
65 lines (60 loc) 2.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseWrapperPhishingSiteResult = void 0; var _ApiClient = require("../ApiClient"); var _ResponseWrapperPhishingSiteResultWebsiteContractSecurity = require("./ResponseWrapperPhishingSiteResultWebsiteContractSecurity"); /* * 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 ResponseWrapperPhishingSiteResult model module. * @module model/ResponseWrapperPhishingSiteResult * @version 1.0 */ class ResponseWrapperPhishingSiteResult { /** * Constructs a new <code>ResponseWrapperPhishingSiteResult</code>. * Response result * @alias module:model/ResponseWrapperPhishingSiteResult * @class */ constructor() {} /** * Constructs a <code>ResponseWrapperPhishingSiteResult</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/ResponseWrapperPhishingSiteResult} obj Optional instance to populate. * @return {module:model/ResponseWrapperPhishingSiteResult} The populated <code>ResponseWrapperPhishingSiteResult</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ResponseWrapperPhishingSiteResult(); if (data.hasOwnProperty('website_contract_security')) obj.website_contract_security = _ApiClient.ApiClient.convertToType(data['website_contract_security'], [_ResponseWrapperPhishingSiteResultWebsiteContractSecurity.ResponseWrapperPhishingSiteResultWebsiteContractSecurity]); if (data.hasOwnProperty('phishing_site')) obj.phishing_site = _ApiClient.ApiClient.convertToType(data['phishing_site'], 'Number'); } return obj; } } /** * @member {Array.<module:model/ResponseWrapperPhishingSiteResultWebsiteContractSecurity>} website_contract_security */ exports.ResponseWrapperPhishingSiteResult = ResponseWrapperPhishingSiteResult; ResponseWrapperPhishingSiteResult.prototype.website_contract_security = undefined; /** * It means whether the website is a phishing site. \"1\" means true; \"0\" means that we have not found malicious behavior of this website. * @member {Number} phishing_site */ ResponseWrapperPhishingSiteResult.prototype.phishing_site = undefined;