Class: ContactList

ContactList

Manages contact lists returned from FIND_NODE queries

new ContactList(key, contacts)

Parameters:
Name Type Description
key string Lookup key for this operation
contacts Array.<Bucket~contact> List of contacts to initialize with
Source:

Members


active

Properties:
Name Type Description
active Array.<Bucket~contact> Contacts in the list that are active
Source:

closest

Properties:
Name Type Description
closest Bucket~contact The contact closest to the reference key
Source:

uncontacted

Properties:
Name Type Description
uncontacted Array.<Bucket~contact> Contacts in the list that have not been contacted
Source:

Methods


add(contacts)

Adds the given contacts to the list
Parameters:
Name Type Description
contacts Array.<Bucket~contact>
Source:

contacted(contact)

Marks the supplied contact as contacted
Parameters:
Name Type Description
contact Bucket~contact
Source:

responded(contact)

Marks the supplied contact as active
Parameters:
Name Type Description
contact Bucket~contact
Source: