UNPKG

maplestory-openapi

Version:

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

79 lines (75 loc) 1.79 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 종합 랭킹 정보 */ class OverallRankingDto { /** * 랭킹 업데이트 일자 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기) */ date; /** * 종합 랭킹 순위 */ ranking; /** * 캐릭터 명 */ characterName; /** * 월드 명 */ worldName; /** * 직업 명 */ className; /** * 전직 직업 명 */ subClassName; /** * 캐릭터 레벨 */ characterLevel; /** * 캐릭터 경험치 */ characterExp; /** * 캐릭터 인기도 */ characterPopularity; /** * 길드 명 */ characterGuildName; constructor(obj) { const { date, ranking, character_name, world_name, class_name, sub_class_name, character_level, character_exp, character_popularity, character_guildname, } = obj; this.date = new Date(date); this.ranking = ranking; this.characterName = character_name; this.worldName = world_name; this.className = class_name; this.subClassName = sub_class_name; this.characterLevel = character_level; this.characterExp = character_exp; this.characterPopularity = character_popularity; this.characterGuildName = character_guildname; } } /** * 종합 랭킹 응답 정보 */ class OverallRankingResponseDto { /** * 종합 랭킹 정보 */ ranking; constructor(obj) { const { ranking } = obj; this.ranking = ranking.map((rank) => new OverallRankingDto(rank)); } } exports.OverallRankingDto = OverallRankingDto; exports.OverallRankingResponseDto = OverallRankingResponseDto;