Class: KnownColor

KnownColor(dataopt)

Represents a known color object.

Constructor

new KnownColor(dataopt)

Create a new instance of a known color
Parameters:
Name Type Attributes Description
data object <optional>
API response data.
Properties
Name Type Attributes Default Description
color_id number <optional>
0 The color id.
quantity number <optional>
0 The quantity of items with this known color.
Source:

Classes

KnownColor

Members

color_id :number

Type:
  • number
Source:

quantity :number

Type:
  • number
Source:

Methods

(static) get(itemType, itemNumber) → {BricklinkRequest}

Method to get a list of known color_id for a given catalog item. Usage: ``` var req = KnownColor.get(ItemType.Part, '3001'); client.send(req).then(colors => console.log(colors)); ```
Parameters:
Name Type Description
itemType string Catalog item type
itemNumber string Catalog item number
Source:
Returns:
A request that resolves to a list of KnownColor.
Type
BricklinkRequest