maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
41 lines (39 loc) • 772 B
JavaScript
/**
* 진행 중 이벤트 상세
*/
class EventNoticeDetailDto {
/**
* 공지 제목
*/
title;
/**
* 공지 링크
*/
url;
/**
* 공지 본문
*/
contents;
/**
* 공지 등록일
*/
date;
/**
* 이벤트 시작일
*/
dateEventStart;
/**
* 이벤트 종료일
*/
dateEventEnd;
constructor(obj) {
const { title, url, contents, date, date_event_start, date_event_end } = obj;
this.title = title;
this.url = url;
this.contents = contents;
this.date = new Date(date);
this.dateEventStart = new Date(date_event_start);
this.dateEventEnd = new Date(date_event_end);
}
}
export { EventNoticeDetailDto };