UNPKG

maplestory-openapi

Version:

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

98 lines (93 loc) 3.04 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var characterHyperStat = require('../../../common/dto/character/characterHyperStat.js'); /** * 캐릭터 하이퍼 스탯 정보 */ class CharacterHyperStatDto extends characterHyperStat.CharacterHyperStatDto { /** * 조회 기준일 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기) */ date; /** * 캐릭터 직업 */ characterClass; /** * 적용 중인 프리셋 번호 */ usePresetNo; /** * 사용 가능한 최대 하이퍼스탯 포인트 */ useAvailableHyperStat; /** * 프리셋 1번 하이퍼 스탯 정보 */ hyperStatPreset1; /** * 프리셋 1번 하이퍼 스탯 잔여 포인트 */ hyperStatPreset1RemainPoint; /** * 프리셋 2번 하이퍼 스탯 정보 */ hyperStatPreset2; /** * 프리셋 2번 하이퍼 스탯 잔여 포인트 */ hyperStatPreset2RemainPoint; /** * 프리셋 3번 하이퍼 스탯 정보 */ hyperStatPreset3; /** * 프리셋 3번 하이퍼 스탯 잔여 포인트 */ hyperStatPreset3RemainPoint; constructor(obj) { super(); const { date, character_class, use_preset_no, use_available_hyper_stat, hyper_stat_preset_1, hyper_stat_preset_1_remain_point, hyper_stat_preset_2, hyper_stat_preset_2_remain_point, hyper_stat_preset_3, hyper_stat_preset_3_remain_point, } = obj; this.date = date ? new Date(date) : null; this.characterClass = character_class; this.usePresetNo = use_preset_no; this.useAvailableHyperStat = use_available_hyper_stat; this.hyperStatPreset1 = hyper_stat_preset_1.map((preset) => new CharacterHyperStatPresetDto(preset)); this.hyperStatPreset1RemainPoint = hyper_stat_preset_1_remain_point; this.hyperStatPreset2 = hyper_stat_preset_2.map((preset) => new CharacterHyperStatPresetDto(preset)); this.hyperStatPreset2RemainPoint = hyper_stat_preset_2_remain_point; this.hyperStatPreset3 = hyper_stat_preset_3.map((preset) => new CharacterHyperStatPresetDto(preset)); this.hyperStatPreset3RemainPoint = hyper_stat_preset_3_remain_point; } } /** * 캐릭터 하이퍼 스탯 프리셋 정보 */ class CharacterHyperStatPresetDto extends characterHyperStat.CharacterHyperStatPresetDto { /** * 스탯 종류 */ statType; /** * 스탯 투자 포인트 */ statPoint; /** * 스탯 레벨 */ statLevel; /** * 스탯 상승량 */ statIncrease; constructor(obj) { super(); const { stat_type, stat_point, stat_level, stat_increase } = obj; this.statType = stat_type; this.statPoint = stat_point; this.statLevel = stat_level; this.statIncrease = stat_increase; } } exports.CharacterHyperStatDto = CharacterHyperStatDto; exports.CharacterHyperStatPresetDto = CharacterHyperStatPresetDto;