Home Reference Source Test
public class | source

Services

Static Method Summary

Static Public Methods
public static

isFullNode(services: number): boolean

public static

isLightNode(services: number): boolean

public static

isNanoNode(services: number): boolean

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

Params:

NameTypeAttributeDescription
services number

Bitmap of the services to check

Return:

boolean

public static isLightNode(services: number): boolean source

Params:

NameTypeAttributeDescription
services number

Bitmap of the services to check

Return:

boolean

public static isNanoNode(services: number): boolean source

Params:

NameTypeAttributeDescription
services number

Bitmap of the services to check

Return:

boolean

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