UNPKG

maplestory-openapi

Version:

This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.

89 lines (84 loc) 2.47 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var characterVMatrix = require('../../../common/dto/character/characterVMatrix.js'); /** * Character V Matrix information */ class CharacterVMatrixDto extends characterVMatrix.CharacterVMatrixDto { /** * Reference date for query (SGT, daily data with hours and minutes set to 0) */ date; /** * Character job */ characterClass; /** * V Matrix Node information */ characterVCoreEquipment; /** * Remaining Matrix enhancement points for the character */ characterVMatrixRemainSlotUpgradePoint; constructor(obj) { super(); const { date, character_class, character_v_core_equipment, character_v_matrix_remain_slot_upgrade_point, } = obj; this.date = date ? new Date(date) : null; this.characterClass = character_class; this.characterVCoreEquipment = character_v_core_equipment.map((equipment) => new CharacterVMatrixCodeEquipmentDto(equipment)); this.characterVMatrixRemainSlotUpgradePoint = character_v_matrix_remain_slot_upgrade_point; } } /** * V Matrix Node information */ class CharacterVMatrixCodeEquipmentDto extends characterVMatrix.CharacterVMatrixCodeEquipmentDto { /** * Slot index */ slotId; /** * Slot level */ slotLevel; /** * Node name */ vCoreName; /** * Node type */ vCoreType; /** * Node level */ vCoreLevel; /** * Name of the skill that corresponds to the node */ vCoreSkill1; /** * Name of the second skill that corresponds to the node (for Boost Nodes) */ vCoreSkill2; /** * Name of the third skill that corresponds to the node (for Boost Nodes) */ vCoreSkill3; constructor(obj) { super(); const { slot_id, slot_level, v_core_name, v_core_type, v_core_level, v_core_skill_1, v_core_skill_2, v_core_skill_3, } = obj; this.slotId = slot_id; this.slotLevel = slot_level; this.vCoreName = v_core_name; this.vCoreType = v_core_type; this.vCoreLevel = v_core_level; this.vCoreSkill1 = v_core_skill_1; this.vCoreSkill2 = v_core_skill_2; this.vCoreSkill3 = v_core_skill_3; } } exports.CharacterVMatrixCodeEquipmentDto = CharacterVMatrixCodeEquipmentDto; exports.CharacterVMatrixDto = CharacterVMatrixDto;