blockUsers()
method. Once any user is blocked, all the communication to and from the respective user will be completely blocked. You can block multiple users in a single operation. The blockUsers()
method takes a List<String>
as a parameter which holds the list of UIDs
to be blocked.
onSuccess()
callback, you receive a HashMap which contains UIDs
as the keys and success
or fail
as the value based on if the block operation for the UID
was successful or not.
unblockUsers()
method. You can unblock multiple users in a single operation. The unblockUsers()
method takes a List<String>
as a parameter which holds the list of UIDs
to be unblocked.
onSuccess()
callback, you receive a HashMap which contains UIDs
as the keys and success
or fail
as the value based on if the unblock operation for the UID
was successful or not.
BlockedUsersRequest
class. To use this class i.e to create an object of the BlockedUsersRequest class
, you need to use the BlockedUsersRequestBuilder
class. The BlockedUsersRequestBuilder
class allows you to set the parameters based on which the blocked users are to be fetched.
The BlockedUsersRequestBuilder
class allows you to set the below parameters:
build()
method to get the object of the BlockedUsersRequest
class.
Once you have the object of the BlockedUsersRequest
class, you need to call the fetchNext()
method. Calling this method will return a list of User
objects containing n number of blocked users where N is the limit set in the builder class.