maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
69 lines (65 loc) • 1.48 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
/**
* 유니온 랭킹 정보
*/
class UnionRankingDto {
/**
* 랭킹 업데이트 일자 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기)
*/
date;
/**
* 유니온 랭킹 순위
*/
ranking;
/**
* 캐릭터 명
*/
characterName;
/**
* 월드 명
*/
worldName;
/**
* 직업 명
*/
className;
/**
* 전직 직업 명
*/
subClassName;
/**
* 유니온 레벨
*/
unionLevel;
/**
* 유니온 파워
*/
unionPower;
constructor(obj) {
const { date, ranking, character_name, world_name, class_name, sub_class_name, union_level, union_power, } = 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.unionLevel = union_level;
this.unionPower = union_power;
}
}
/**
* 유니온 랭킹 응답 정보
*/
class UnionRankingResponseDto {
/**
* 유니온 랭킹 정보
*/
ranking;
constructor(obj) {
const { ranking } = obj;
this.ranking = ranking.map((rank) => new UnionRankingDto(rank));
}
}
exports.UnionRankingDto = UnionRankingDto;
exports.UnionRankingResponseDto = UnionRankingResponseDto;