Class: Graphic

Graphic

An api adapter that provides functions for accessing various details for a graphic specified by id, via functions in the universe ESI endpoints. You should not usually instantiate this directly as its constructor requires an internal api instance.


new Graphic(agent, graphicId)

Create a new Graphic for the given agent provider and specific graphicId.

Parameters:
Name Type Description
agent ESIAgent

The ESI agent used to generate web requests

graphicId Number

The graphic id that is used for all requests

Methods


info()

Get information on a graphic. This route expires daily at 11:05.

This makes an HTTP GET request to /universe/graphics/{graphic_id}/. The route version is v1.

On success, this resolves to information about a graphic. An example result is:

{
  "collision_file": "",
  "graphic_file": "res:/dx9/model/worldobject/planet/moon.red",
  "graphic_id": 10,
  "icon_folder": "",
  "sof_dna": "",
  "sof_fation_name": "",
  "sof_hull_name": "",
  "sof_race_name": ""
}
Returns:

A Promise that resolves to the parsed JSON of the response.

Type
Promise.<Object>