maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
98 lines (93 loc) • 2.95 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var characterHyperStat = require('../../../common/dto/character/characterHyperStat.js');
/**
* Character Hyper Stat information
*/
class CharacterHyperStatDto extends characterHyperStat.CharacterHyperStatDto {
/**
* Reference date for query (SGT, daily data with hours and minutes set to 0)
*/
date;
/**
* Character job
*/
characterClass;
/**
* Active preset number
*/
usePresetNo;
/**
* Maximum available Hyper Stat points
*/
useAvailableHyperStat;
/**
* Hyper Stat information for preset 1
*/
hyperStatPreset1;
/**
* Remaining Hyper Stat points for preset 1
*/
hyperStatPreset1RemainPoint;
/**
* Hyper Stat information for preset 2
*/
hyperStatPreset2;
/**
* Remaining Hyper Stat points for preset 2
*/
hyperStatPreset2RemainPoint;
/**
* Hyper Stat information for preset 3
*/
hyperStatPreset3;
/**
* Remaining Hyper Stat points for preset 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;
}
}
/**
* Hyper Stat information for preset
*/
class CharacterHyperStatPresetDto extends characterHyperStat.CharacterHyperStatPresetDto {
/**
* Stat type
*/
statType;
/**
* Stat points to invest
*/
statPoint;
/**
* Stat level
*/
statLevel;
/**
* Stat increases
*/
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;