Package com.cometchat.pro.core
Class BlockedUsersRequest.BlockedUsersRequestBuilder
- java.lang.Object
-
- com.cometchat.pro.core.BlockedUsersRequest.BlockedUsersRequestBuilder
-
- Enclosing class:
- BlockedUsersRequest
public static class BlockedUsersRequest.BlockedUsersRequestBuilder extends java.lang.Object
Builder class to set various parameters to fetch list blocked users
-
-
Constructor Summary
Constructors Constructor Description BlockedUsersRequestBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockedUsersRequest
build()
BlockedUsersRequest.BlockedUsersRequestBuilder
setDirection(java.lang.String direction)
A method that determines the nature of the blocked users to be fetched.BlockedUsersRequest.BlockedUsersRequestBuilder
setLimit(int limit)
A method to set limit.BlockedUsersRequest.BlockedUsersRequestBuilder
setSearchKeyword(java.lang.String searchKeyword)
A method set Search user with specified name orUID
while fetching the messages
-
-
-
Method Detail
-
setLimit
public BlockedUsersRequest.BlockedUsersRequestBuilder setLimit(int limit)
A method to set limit. This determines the number of blocked users fetched in a single operation if default value in the builder is 30 and max value is 100- Parameters:
limit
- Integer value specified by the Developer- Returns:
- BlockedUsersRequestBuilder object when
is called - Since:
- v1
-
setSearchKeyword
public BlockedUsersRequest.BlockedUsersRequestBuilder setSearchKeyword(java.lang.String searchKeyword)
A method set Search user with specified name orUID
while fetching the messages
- Parameters:
searchKeyword
- keyword which developer wants to search in the group member list- Returns:
- BlockedUsersRequestBuilder object when
is called - Since:
- v1
-
setDirection
public BlockedUsersRequest.BlockedUsersRequestBuilder setDirection(java.lang.String direction)
A method that determines the nature of the blocked users to be fetched. This could be 1. users blocked by the logged in user 2. users that have blocked the logged in user 3. both- Parameters:
direction
- The type of blocked users to be fetched.- Returns:
- BlockedUsersRequestBuilder object when
is called - Since:
- v1
-
build
public BlockedUsersRequest build()
-
-