UNPKG

maplestory-openapi

Version:

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

49 lines (45 loc) 938 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 업데이트 목록 */ 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); } } exports.UpdateNoticeListDto = UpdateNoticeListDto; exports.UpdateNoticeListItemDto = UpdateNoticeListItemDto;