UNPKG

maplestory-openapi

Version:

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

31 lines (29 loc) 856 B
/** * 서버 점검 정보 */ class InspectionInfoDto { /** * 서비스 코드 */ serviceCode; /** * 점검 시작 시각 */ startDateTime; /** * 점검 종료 시각 */ endDateTime; /** * 점검 안내 제목 */ strObstacleContents; constructor(obj) { const inspectionInfoTag = obj['soap:Envelope']['soap:Body'][0]['GetInspectionInfoResponse'][0]['GetInspectionInfoResult'][0]['diffgr:diffgram'][0]['NewDataSet'][0]['InspectionInfo'][0]; this.serviceCode = Number(inspectionInfoTag.serviceCode[0]); this.startDateTime = new Date(inspectionInfoTag.startDateTime[0]); this.endDateTime = new Date(inspectionInfoTag.endDateTime[0]); this.strObstacleContents = inspectionInfoTag.strObstacleContents[0]; } } export { InspectionInfoDto };