/** * [login description] * * @param {[type]} username [description] * @param {[type]} password [description] * @param {[type]} provider [description] * @param {[type]} forceRefreshLogin [description] * @return {[type]} [description] */ async login(username, password, provider, forceRefreshLogin) { if (provider !== 'ptc' && provider !== 'google') { throw new Error('Invalid provider') } this.player.provider = provider await this.player.Login(username, password, forceRefreshLogin) await this.api.setEndpoint(this.player.playerInfo) await this.inventory.update() return this }
/** * [GetInventory description] * @return {[type]} [description] */ async GetInventory() { this.log.info('[!] GetInventory: DEPRECATED! USE: Poke.inventory.update()') return this.inventory.update() }