Home Reference Source Test
public class | source

Services

Static Method Summary

Static Public Methods
public static

isFullNode(services: number): boolean

this method was deprecated.
public static

isLightNode(services: number): boolean

this method was deprecated.
public static

isNanoNode(services: number): boolean

this method was deprecated.
public static

legacyProvideToCurrent(flags: *): *

public static

providesServices(flags: number, services: ...number): *

public static

toNameArray(flags: number): Array<string>

Constructor Summary

Public Constructor
public

constructor(provided: number, accepted: number)

Member Summary

Public Members
public get

accepted: number

public set

accepted(services: number)

public get

provided: number

public set

provided(services: number)

Static Public Methods

public static isFullNode(services: number): boolean source

this method was deprecated.

Params:

NameTypeAttributeDescription
services number

Bitmap of the services to check

Return:

boolean

public static isLightNode(services: number): boolean source

this method was deprecated.

Params:

NameTypeAttributeDescription
services number

Bitmap of the services to check

Return:

boolean

public static isNanoNode(services: number): boolean source

this method was deprecated.

Params:

NameTypeAttributeDescription
services number

Bitmap of the services to check

Return:

boolean

public static legacyProvideToCurrent(flags: *): * source

Params:

NameTypeAttributeDescription
flags *

Return:

*

public static providesServices(flags: number, services: ...number): * source

Params:

NameTypeAttributeDescription
flags number
services ...number

Return:

*

public static toNameArray(flags: number): Array<string> source

Params:

NameTypeAttributeDescription
flags number

Return:

Array<string>

Public Constructors

public constructor(provided: number, accepted: number) source

Params:

NameTypeAttributeDescription
provided number
  • optional
  • default: Services.NONE

Bitmap of services that can be provided by this node

accepted number
  • optional
  • default: Services.NONE

Bitmap of services that can be accepted by this node

Public Members

public get accepted: number source

public set accepted(services: number) source

public get provided: number source

public set provided(services: number) source