UNPKG

enkanetwork

Version:

API wrapper for enka.network written on TypeScript which provides localization, caching and convenience

25 lines (24 loc) 794 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnkaProfile = void 0; // [DOCUMENTATION](https://app.gitbook.com/o/37WAVmOUOTPfNqDwXYiL/s/HRuRVaMzLuUsL0mMhv72/~/changes/3/models/enkaprofile) class EnkaProfile { // Username of enka.network account username; // Description of enka.network account bio; // Level of enka.network account level; // State of enka.network account signUp signupState; // Account profile picture imageUrl; constructor(data) { this.username = data.username; this.bio = data.profile.bio; this.level = data.profile.level; this.signupState = data.profile.signup_state; this.imageUrl = data.profile.image_url; } } exports.EnkaProfile = EnkaProfile;