define items, and talk to the API.
Pay attention to the fact that "simple return" with no description won't display redondant information
Methods
asyncstaticgetGoods() → {Array.<SimpleItem>} goods.js, line 27
get list of items, lightweight.
asyncstaticgetGoodsById(id) → {Item | Boolean} goods.js, line 39
Parameters:
Name | Type | Description |
---|---|---|
id | Number | the id of the item |
Returns:
-
Item
return the item with full description
-
Boolean
return false if id doesn't exist
asyncstaticgetGoodsByName(name) → {Item | Boolean} goods.js, line 51
Parameters:
Name | Type | Description |
---|---|---|
name | string | the id of the item |
- Deprecated:
- use getGoodsById
Returns:
-
Item
return the item with full description
-
Boolean
return false if id doesn't exist