UNPKG

maplestory-openapi

Version:

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

84 lines (81 loc) 2.4 kB
import { CharacterVMatrixDto as CharacterVMatrixDto$1, CharacterVMatrixCodeEquipmentDto as CharacterVMatrixCodeEquipmentDto$1 } from '../../../common/dto/character/characterVMatrix.js'; /** * Character V Matrix information */ class CharacterVMatrixDto extends CharacterVMatrixDto$1 { /** * 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 CharacterVMatrixCodeEquipmentDto$1 { /** * 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; } } export { CharacterVMatrixCodeEquipmentDto, CharacterVMatrixDto };