deleteContactsFromGroup
Removes multiple contacts from a specific group.
This method allows you to remove a list of contacts, identified by contactIds
, from a group specified by groupId
. Each contact in the list is removed from the group, and the group's details are updated in the groups property.
If the groupId
is null or empty, or if the contactIds
list is empty, the method returns immediately, and the listener's onError
method is triggered with an appropriate error message.
For each contact that fails to be removed from the group, an individual RainbowError
is added to the list of errors passed to the listener's onError
method.
If all contacts are successfully removed from the group, the listener's onSuccess
method is called to indicate that the operation was completed successfully.
Parameters
The unique identifier of the group from which the contacts will be removed. If null or empty, the method returns immediately, and the listener's onError
method is called.
A list of unique identifiers for the contacts to remove from the group. If the list is empty, the method returns immediately, and the listener's onError
method is called.
An optional RainbowListener that will be notified with the result of the remove operation. If any contacts fail to be removed, the listener's onError
method will be called with a list of RainbowError
objects. On successful removal of all contacts, the listener's onSuccess
method is called.