Accepts a friend invitation。
The user who sends the friend invitation.
Adds a new contact.
The user ID of the contact to add.
The reason for adding the contact. This parameter is optional and can be null
or "".
Adds a contact listener.
The listener to add.
Adds a contact to the block list.
You can send messages to the users on the block list, but cannot receive messages from them.
The user ID of the contact to be added to the block list.
Declines a friend invitation.
The user who sends the friend invitation.
Deletes a contact and all the related conversations.
The user ID of the contact to delete.
Whether to retain conversations of the contact to delete.
true
: Yes.false
: No.Gets the contact list from the local database.
The contact list.
Gets the contact list from the server.
The list of contacts.
Gets the block list from the local database.
The block list obtained from the local database.
Gets the block list from the server.
The block list obtained from the server.
Gets the unique IDs of the current user on the other devices. The ID is in the format of {user_ID} + "/" + {resource_ID}
.
The list of unique IDs of users on the other devices if the method succeeds.
Removes all contact listeners.
Removes the contact listener.
The listener to remove.
Removes the contact from the block list.
The user ID of the contact to be removed from the block list.
Generated using TypeDoc
export manager