entity_decode

Decode the on-network array entity format into an object format closer to that used before makes much more sense as an object, means that existing code didn't need to change, and it's what the stock intel site does internally too (the array format is only on the network)

Methods

inner corePortalData(a) → {Object}

Parses the core portal data from an array.

Parameters:
Name Type Description
a Array

The portal data array.

Returns:
Object -

An object containing the core data of a portal.

inner detailsPortalData(a) → {Object}

Parses the detailed portal data from an array.

Parameters:
Name Type Description
a Array

The portal data array.

Returns:
Object -

An object containing the detailed data of a portal.

inner extendedPortalData(a) → {Object}

Parses the extended portal data from an array.

Parameters:
Name Type Description
a Array

The portal data array.

Returns:
Object -

An object containing the extended data of a portal.

inner parseArtifactBrief(arr) → {Object|null}

Parses an artifact brief array into an object.

Parameters:
Name Type Description
arr Array

The artifact brief array.

Returns:
Object | null -

Parsed artifact brief object or null if the input is falsy.

inner parseArtifactDetail(arr) → {Object|null}

Parses an artifact detail array into an object.

Parameters:
Name Type Description
arr Array

The artifact detail array.

Returns:
Object | null -

Parsed artifact detail object or null if the input is falsy.

inner parseHistoryDetail(bitarray) → {Object}

Parses a history detail bit array into an object.

Parameters:
Name Type Description
bitarray number

The history detail bit array.

Returns:
Object -

Parsed history detail object.

inner parseMod(arr) → {Object|null}

Parses a mod array into an object.

Parameters:
Name Type Description
arr Array

The mod array.

Returns:
Object | null -

Parsed mod object or null if the input is falsy.

inner parseResonator(arr) → {Object|null}

Parses a resonator array into an object.

Parameters:
Name Type Description
arr Array

The resonator array.

Returns:
Object | null -

Parsed resonator object or null if the input is falsy.

inner summaryPortalData(a) → {Object}

Parses the summary portal data from an array.

Parameters:
Name Type Description
a Array

The portal data array.

Returns:
Object -

An object containing the summary data of a portal.