UNPKG

@fnlb-project/fnbr

Version:

A library to interact with Epic Games' Fortnite HTTP and XMPP services

36 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Meta_1 = tslib_1.__importDefault(require("../../util/Meta")); /** * Represents a party's meta */ class PartyMeta extends Meta_1.default { /** * The region ID (EU, NAE, NAW, etc.) */ get regionId() { const regionId = this.get('Default:RegionId_s') || this.get('Default:CurrentRegionId_s'); if (typeof regionId !== 'string' || regionId.length === 0) { return undefined; } return regionId; } /** * The custom matchmaking key */ get customMatchmakingKey() { const key = this.get('Default:CustomMatchKey_s'); if (typeof key !== 'string' || key.length === 0) return undefined; return key; } /** * The squad fill status */ get squadFill() { return !!this.get('Default:AthenaSquadFill_b'); } } exports.default = PartyMeta; //# sourceMappingURL=PartyMeta.js.map