Model: Goods

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.jsline 27

get list of items, lightweight.

asyncstaticgetGoodsById(id) → {Item | Boolean} goods.jsline 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.jsline 51

Parameters:
Name Type Description
name string

the id of the item

Deprecated:
Returns:
  • Item

    return the item with full description

  • Boolean

    return false if id doesn't exist