maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
49 lines (46 loc) • 1.22 kB
JavaScript
import { CharacterPropensityDto as CharacterPropensityDto$1 } from '../../../common/dto/character/characterPropensity.js';
/**
* Character traits information
*/
class CharacterPropensityDto extends CharacterPropensityDto$1 {
/**
* 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;
}
}
export { CharacterPropensityDto };