Skip to content

hywrapper-ts / Exports / BazaarResponseHelper

Class: BazaarResponseHelper

Helper class to provide methods similar to the Kotlin version.

Table of contents

Constructors

Methods

Constructors

constructor

new BazaarResponseHelper(): BazaarResponseHelper

Returns

BazaarResponseHelper

Methods

getProduct

getProduct(response, item): undefined | Product

Retrieves a product from the bazaar response by item ID.

Parameters

Name Type Description
response BazaarResponse The bazaar response.
item BazaarItem The bazaar item.

Returns

undefined | Product

The product data, or undefined if not found.

Defined in

src/models/skyblock/BazaarResponse.ts:45