UNPKG

maplestory-openapi

Version:

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

69 lines (65 loc) 1.48 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 길드 랭킹 정보 */ class GuildRankingDto { /** * 랭킹 업데이트 일자 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기) */ date; /** * 길드 랭킹 순위 */ ranking; /** * 길드 명 */ guildName; /** * 월드 명 */ worldName; /** * 길드 레벨 */ guildLevel; /** * 길드 마스터 캐릭터 명 */ guildMasterName; /** * 길드 마크 */ guildMark; /** * 길드 포인트 */ guildPoint; constructor(obj) { const { date, ranking, guild_name, world_name, guild_level, guild_master_name, guild_mark, guild_point, } = obj; this.date = new Date(date); this.ranking = ranking; this.guildName = guild_name; this.worldName = world_name; this.guildLevel = guild_level; this.guildMasterName = guild_master_name; this.guildMark = guild_mark; this.guildPoint = guild_point; } } /** * 길드 랭킹 응답 정보 */ class GuildRankingResponseDto { /** * 길드 랭킹 정보 */ ranking; constructor(obj) { const { ranking } = obj; this.ranking = ranking.map((rank) => new GuildRankingDto(rank)); } } exports.GuildRankingDto = GuildRankingDto; exports.GuildRankingResponseDto = GuildRankingResponseDto;