UNPKG

maplestory-openapi

Version:

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

48 lines (43 loc) 1.1 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var union = require('../../../common/dto/union/union.js'); /** * 戰地資訊 */ class UnionDto extends union.UnionDto { /** * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0) */ date; /** * 聯盟等級 */ unionLevel; /** * 聯盟階級 */ unionGrade; /** * 神器等級 */ unionArtifactLevel; /** * 持有的神器經驗值 */ unionArtifactExp; /** * 持有的神器點數 */ unionArtifactPoint; constructor(obj) { super(); const { date, union_level, union_grade, union_artifact_level, union_artifact_exp, union_artifact_point, } = obj; this.date = date ? new Date(date) : null; this.unionLevel = union_level; this.unionGrade = union_grade; this.unionArtifactLevel = union_artifact_level; this.unionArtifactExp = union_artifact_exp; this.unionArtifactPoint = union_artifact_point; } } exports.UnionDto = UnionDto;