UNPKG

stackexchange-api

Version:
16 lines (15 loc) 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * The equivalent of [Type badge_count](https://api.stackexchange.com/docs/types/badge-count).<br> * This object represents the total [[Badge|Badges]], segregated by rank, a user has earned. */ class BadgeCount { constructor(badge_count) { var _a, _b, _c, _d, _e, _f; this.bronze = (_b = (_a = badge_count) === null || _a === void 0 ? void 0 : _a.bronze, (_b !== null && _b !== void 0 ? _b : null)); this.gold = (_d = (_c = badge_count) === null || _c === void 0 ? void 0 : _c.gold, (_d !== null && _d !== void 0 ? _d : null)); this.silver = (_f = (_e = badge_count) === null || _e === void 0 ? void 0 : _e.silver, (_f !== null && _f !== void 0 ? _f : null)); } } exports.BadgeCount = BadgeCount;