# contactsSearched

Version: 4.3.0+

Description: a notification received after searching for contacts on the server using the searchContact2 command.

Example:

{
    "event": "contactsSearched",
    "requestId": "1",
    "foundContacts": [
        {
            "peerId": "user1@some.server",
            "displayName": "U1",
            "isInAbook" : true
        },
        {
            "peerId": "user2@some.server",
            "displayName": "U2",
            "isInAbook" : true
        },
        {
            "peerId": "user3@some.server",
            "displayName": "U3",
            "isInAbook" : true
        },
        {
            "peerId": "user10@some.server",
            "displayName": "U10",
            "isInAbook" : false
        }
    ],
    "method": "event"
}

Parameter description:

  • requestId - unique request identifier

  • foundContacts - list of found contacts

  • peerId - unique identifier of the found contact

  • displayName - the display name of the found contact

  • isInAbook - a flag indicating the presence of a contact in the address book

See also: