UNPKG

maplestory-openapi

Version:

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

44 lines (41 loc) 1.03 kB
import { UnionDto as UnionDto$1 } from '../../../common/dto/union/union.js'; /** * 戰地資訊 */ class UnionDto extends UnionDto$1 { /** * 要搜尋的日期 (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; } } export { UnionDto };