maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
79 lines (74 loc) • 2.27 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var characterHexaMatrix = require('../../../common/dto/character/characterHexaMatrix.js');
/**
* 캐릭터 HEXA 코어 정보
*/
class CharacterHexaMatrixDto extends characterHexaMatrix.CharacterHexaMatrixDto {
/**
* 조회 기준일 (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 characterHexaMatrix.CharacterHexaMatrixEquipmentLinkedSkillDto {
/**
* HEXA 스킬 명
*/
hexaSkillId;
constructor(obj) {
super();
const { hexa_skill_id } = obj;
this.hexaSkillId = hexa_skill_id;
}
}
/**
* 캐릭터 HEXA 코어 정보
*/
class CharacterHexaMatrixEquipmentDto extends characterHexaMatrix.CharacterHexaMatrixEquipmentDto {
/**
* 코어 명
*/
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));
}
}
exports.CharacterHexaMatrixDto = CharacterHexaMatrixDto;
exports.CharacterHexaMatrixEquipmentDto = CharacterHexaMatrixEquipmentDto;
exports.CharacterHexaMatrixEquipmentLinkedSkillDto = CharacterHexaMatrixEquipmentLinkedSkillDto;