UNPKG

maplestory-openapi

Version:

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

53 lines (48 loc) 1.31 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var characterPropensity = require('../../../common/dto/character/characterPropensity.js'); /** * Character traits information */ class CharacterPropensityDto extends characterPropensity.CharacterPropensityDto { /** * Reference date for query (SGT, daily data with hours and minutes set to 0) */ date; /** * Ambition level */ charismaLevel; /** * Empathy level */ sensibilityLevel; /** * Insight level */ insightLevel; /** * Willpower level */ willingnessLevel; /** * Diligence level */ handicraftLevel; /** * Charm level */ charmLevel; constructor(obj) { super(); const { date, charisma_level, sensibility_level, insight_level, willingness_level, handicraft_level, charm_level, } = obj; this.date = date ? new Date(date) : null; this.charismaLevel = charisma_level; this.sensibilityLevel = sensibility_level; this.insightLevel = insight_level; this.willingnessLevel = willingness_level; this.handicraftLevel = handicraft_level; this.charmLevel = charm_level; } } exports.CharacterPropensityDto = CharacterPropensityDto;