enkanetwork
Version:
API wrapper for enka.network written on TypeScript which provides localization, caching and convenience
30 lines (29 loc) • 790 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FetchEnkaHoyoBuilds = void 0;
const index_1 = require("../index");
class FetchEnkaHoyoBuilds {
id;
name;
avatarId;
hoyo_type;
public;
settings;
order;
avatar;
live;
image;
constructor(assets, language, data) {
this.id = data.id;
this.name = data.name;
this.avatarId = +data.avatar_id;
this.avatar = new index_1.Character(assets, language, data.avatar_data);
this.order = data.order;
this.live = data.live;
this.settings = data.settings;
this.public = data.public;
this.image = data.image;
this.hoyo_type = data.hoyo_type;
}
}
exports.FetchEnkaHoyoBuilds = FetchEnkaHoyoBuilds;