UNPKG

maplestory-openapi

Version:

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

73 lines (70 loc) 2.22 kB
import { CharacterHexaMatrixDto as CharacterHexaMatrixDto$1, CharacterHexaMatrixEquipmentLinkedSkillDto as CharacterHexaMatrixEquipmentLinkedSkillDto$1, CharacterHexaMatrixEquipmentDto as CharacterHexaMatrixEquipmentDto$1 } from '../../../common/dto/character/characterHexaMatrix.js'; /** * 캐릭터 HEXA 코어 정보 */ class CharacterHexaMatrixDto extends CharacterHexaMatrixDto$1 { /** * 조회 기준일 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기) */ date; /** * HEXA 코어 정보 */ characterHexaCoreEquipment; constructor(obj) { super(); const { date, character_hexa_core_equipment } = obj; this.date = date ? new Date(date) : null; this.characterHexaCoreEquipment = character_hexa_core_equipment?.map((equipment) => new CharacterHexaMatrixEquipmentDto(equipment)) ?? []; } } /** * 연결된 HEXA 스킬 정보 */ class CharacterHexaMatrixEquipmentLinkedSkillDto extends CharacterHexaMatrixEquipmentLinkedSkillDto$1 { /** * HEXA 스킬 명 */ hexaSkillId; constructor(obj) { super(); const { hexa_skill_id } = obj; this.hexaSkillId = hexa_skill_id; } } /** * 캐릭터 HEXA 코어 정보 */ class CharacterHexaMatrixEquipmentDto extends CharacterHexaMatrixEquipmentDto$1 { /** * 코어 명 */ hexaCoreName; /** * 코어 레벨 */ hexaCoreLevel; /** * 코어 이벤트 레벨 */ hexaCoreEventLevel; /** * 코어 타입 */ hexaCoreType; /** * 연결된 스킬 목록 */ linkedSkill; constructor(obj) { super(); const { hexa_core_name, hexa_core_level, hexa_core_event_level, hexa_core_type, linked_skill } = obj; this.hexaCoreName = hexa_core_name; this.hexaCoreLevel = hexa_core_level; this.hexaCoreEventLevel = hexa_core_event_level; this.hexaCoreType = hexa_core_type; this.linkedSkill = linked_skill.map((skill) => new CharacterHexaMatrixEquipmentLinkedSkillDto(skill)); } } export { CharacterHexaMatrixDto, CharacterHexaMatrixEquipmentDto, CharacterHexaMatrixEquipmentLinkedSkillDto };