new Industry(agent)
Create a new Industry instance using the given agent
.
Parameters:
Name | Type | Description |
---|---|---|
agent |
ESIAgent | The agent provider |
Methods
-
facilities()
-
Return a list of industry facilities. This route is cached for up to 3600 seconds.
This makes an HTTP GET request to
/industry/facilities/
. The route version isv1
.On success, this resolves to a list of prices. An example result is:
[ { "facility_id": 60012544, "owner_id": 1000126, "region_id": 10000001, "solar_system_id": 30000032, "tax": 0.1, "type_id": 2502 } ]
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Array.<Object>>
-
systemCosts()
-
Return cost indices for solar systems. This route is cached for up to 3600 seconds.
This makes an HTTP GET request to
/industry/systems/
. The route version isv1
.On success, this resolves to a list of cost indicies. An example result is:
[ { "cost_indices": [ { "activity": "invention", "cost_index": 0.00480411064973412 } ], "solar_system_id": 30011392 } ]
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Array.<Object>>