Constructor
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
PropertiesName | Type | Description |
---|---|---|
active | Array.<Bucket~contact> | Contacts in the list that are active |
- Source
closest
PropertiesName | Type | Description |
---|---|---|
closest | Bucket~contact | The contact closest to the reference key |
- Source
uncontacted
PropertiesName | 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