UNPKG

maplestory-openapi

Version:

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

44 lines (42 loc) 743 B
/** * 공지사항 목록 */ 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); } } export { NoticeListDto, NoticeListItemDto };