UNPKG

maplestory-openapi

Version:

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

74 lines (70 loc) 1.7 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 더 시드 랭킹 정보 */ class TheSeedRankingDto { /** * 랭킹 업데이트 일자 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기) */ date; /** * 더 시드 랭킹 순위 */ ranking; /** * 캐릭터 명 */ characterName; /** * 월드 명 */ worldName; /** * 직업 명 */ className; /** * 전직 직업 명 */ subClassName; /** * 캐릭터 레벨 */ characterLevel; /** * 더 시드 도달 층 */ theSeedFloor; /** * 더 시드 클리어 시간 기록 (초 단위) */ theSeedTimeRecord; constructor(obj) { const { date, ranking, character_name, world_name, class_name, sub_class_name, character_level, theseed_floor, theseed_time_record, } = 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.theSeedFloor = theseed_floor; this.theSeedTimeRecord = theseed_time_record; } } /** * 더 시드 랭킹 응답 정보 */ class TheSeedRankingResponseDto { /** * 더 시드 랭킹 정보 */ ranking; constructor(obj) { const { ranking } = obj; this.ranking = ranking.map((rank) => new TheSeedRankingDto(rank)); } } exports.TheSeedRankingDto = TheSeedRankingDto; exports.TheSeedRankingResponseDto = TheSeedRankingResponseDto;