UNPKG

maplestory-openapi

Version:

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

59 lines (55 loc) 1.22 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 진행 중 이벤트 공지 목록 */ class EventNoticeListDto { /** * 공지 목록 */ eventNotice; constructor(obj) { const { event_notice } = obj; this.eventNotice = event_notice.map((notice) => new EventNoticeListItemDto(notice)); } } /** * 진행 중 이벤트 공지 */ class EventNoticeListItemDto { /** * 공지 제목 */ title; /** * 공지 링크 */ url; /** * 공지 식별자 */ noticeId; /** * 공지 등록일 */ date; /** * 이벤트 시작일 */ dateEventStart; /** * 이벤트 종료일 */ dateEventEnd; constructor(obj) { const { title, url, notice_id, date, date_event_start, date_event_end } = obj; this.title = title; this.url = url; this.noticeId = notice_id; this.date = new Date(date); this.dateEventStart = new Date(date_event_start); this.dateEventEnd = new Date(date_event_end); } } exports.EventNoticeListDto = EventNoticeListDto; exports.EventNoticeListItemDto = EventNoticeListItemDto;