Constructor
new KnownColor(dataopt)
Create a new instance of a known color
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
object |
<optional> |
API response data.
Properties
|
- Source:
Classes
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