Constructors
constructor
- new Contact(__namedParameters): Contact
Parameters
- __namedParameters: {
petname?: string;
publicKey: string;
relay?: string;
}Optional
petname?: string
publicKey: string
Optional
relay?: string
Properties
Optional
petname
petname?: string
publicKey
publicKey: string
Optional
relay
relay?: string
Methods
toTag
- toTag(): string[]
Returns string[]
Static
find
- find(publicKey, contacts): number
Returns number
Static
fromParams
- fromParams(__namedParameters): Contact
Parameters
- __namedParameters: string[]
Static
merge
- merge(contacts, newContacts): Contact[]
Static
remove
- remove(publicKey, contacts): Contact[]
Parameters
- publicKey: string | string[]
- contacts: Contact[]
Static
toMap
- toMap(contacts, contactsMap?): Map<string, Contact>
Returns Map<string, Contact>
Static
toTags
- toTags(contacts): string[][]
Returns string[][]