maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
49 lines (45 loc) • 863 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
/**
* 공지사항 목록
*/
class NoticeListDto {
/**
* 공지 목록
*/
notice;
constructor(obj) {
const { notice } = obj;
this.notice = notice.map((notice) => new NoticeListItemDto(notice));
}
}
/**
* 공지사항
*/
class NoticeListItemDto {
/**
* 공지 제목
*/
title;
/**
* 공지 링크
*/
url;
/**
* 공지 식별자
*/
noticeId;
/**
* 공지 등록일
*/
date;
constructor(obj) {
const { title, url, notice_id, date } = obj;
this.title = title;
this.url = url;
this.noticeId = notice_id;
this.date = new Date(date);
}
}
exports.NoticeListDto = NoticeListDto;
exports.NoticeListItemDto = NoticeListItemDto;