UNPKG

maplestory-openapi

Version:

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

44 lines (42 loc) 806 B
/** * 업데이트 목록 */ class UpdateNoticeListDto { /** * 공지 목록 */ updateNotice; constructor(obj) { const { update_notice } = obj; this.updateNotice = update_notice.map((notice) => new UpdateNoticeListItemDto(notice)); } } /** * 업데이트 공지 */ class UpdateNoticeListItemDto { /** * 공지 제목 */ 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 { UpdateNoticeListDto, UpdateNoticeListItemDto };