Class: Bloodlines

Bloodlines

An api adapter over the end points handling bloodlines via functions in the universe ESI endpoints. You should not usually instantiate this directly as its constructor requires an internal api instance.

This is a function class so instances of Bloodlines are functions and can be invoked directly, besides accessing its members. Its default function action is equivalent to all.


new Bloodlines(agent)

Create a new Bloodlines function using the given agent.

Parameters:
Name Type Description
agent ESIAgent

The ESI agent

Methods


all()

Get a list of bloodlines. This route expires daily at 11:05.

This makes an HTTP GET request to /universe/bloodlines/. The route version is v1.

On success, this resolves to a list of bloodlines. An example result is:

[
  {
    "bloodline_id": 1,
    "charisma": 6,
    "corporation_id": 1000006,
    "description": "The Deteis are regarded as ...",
    "intelligence": 7,
    "memory": 7,
    "name": "Deteis",
    "perception": 5,
    "race_id": 1,
    "ship_type_id": 601,
    "willpower": 5
  }
]
Returns:

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

Type
Promise.<Array.<Object>>