Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wrapzone

Hierarchy

  • Wrapzone

Index

Constructors

constructor

Properties

Private platform

platform: Platform

Private playerData

playerData: PlayerData

Private userName

userName: string

Accessors

raw

  • get raw(): object
  • Returns the raw json that was retrieved from the cod API

    Returns object

Methods

getEquipStats

getGlobalStats

getItemStats

getModeStats

getStreakStats

getWeaponStats

setPlayerData

  • setPlayerData(platform: Platform, userName: string): Promise<void>
  • Fetches the playerdata and saves it in the instance

    Parameters

    • platform: Platform

      The platform the player is on

    • userName: string

      The name of the user (battle.net also requires id, e.g. name#12345)

    Returns Promise<void>

updatePlayerData

  • updatePlayerData(): Promise<void>
  • Re-runs the initial request in order to get updated data

    Returns Promise<void>

Generated using TypeDoc