UNPKG

maplestory-openapi

Version:

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

89 lines (84 loc) 2.46 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var characterVMatrix = require('../../../common/dto/character/characterVMatrix.js'); /** * 캐릭터 V매트릭스 정보 */ class CharacterVMatrixDto extends characterVMatrix.CharacterVMatrixDto { /** * 조회 기준일 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기) */ date; /** * 캐릭터 직업 */ characterClass; /** * V코어 정보 */ characterVCoreEquipment; /** * 캐릭터 잔여 매트릭스 강화 포인트 */ 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코어 정보 */ class CharacterVMatrixCodeEquipmentDto extends characterVMatrix.CharacterVMatrixCodeEquipmentDto { /** * 슬롯 인덱스 */ slotId; /** * 슬롯 레벨 */ slotLevel; /** * 코어 명 */ vCoreName; /** * 코어 타입 */ vCoreType; /** * 코어 레벨 */ vCoreLevel; /** * 코어에 해당하는 스킬 명 */ vCoreSkill1; /** * (강화 코어인 경우) 코어에 해당하는 두 번째 스킬 명 */ vCoreSkill2; /** * (강화 코어인 경우) 코어에 해당하는 세 번째 스킬 명 */ 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;