Package com.cometchat.pro.core
Class ConversationsRequest.ConversationsRequestBuilder
- java.lang.Object
-
- com.cometchat.pro.core.ConversationsRequest.ConversationsRequestBuilder
-
- Enclosing class:
- ConversationsRequest
public static class ConversationsRequest.ConversationsRequestBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConversationsRequestBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationsRequest
build()
ConversationsRequest.ConversationsRequestBuilder
setConversationType(java.lang.String conversationType)
A method to set the conversation type.ConversationsRequest.ConversationsRequestBuilder
setLimit(int limit)
A method to set limit for the number of Conversations returned in a single iteration.ConversationsRequest.ConversationsRequestBuilder
setTags(java.util.List<java.lang.String> tags)
ConversationsRequest.ConversationsRequestBuilder
withTags(boolean withTags)
ConversationsRequest.ConversationsRequestBuilder
withUserAndGroupTags(boolean withUserAndGroupTags)
-
-
-
Method Detail
-
setLimit
public ConversationsRequest.ConversationsRequestBuilder setLimit(int limit)
A method to set limit for the number of Conversations returned in a single iteration. if default value in the builder is 30 and max value is 50- Parameters:
limit
- Integer value specified by the Developer to return the number if conversations in a single iteration- Returns:
- ConversationsRequestBuilder object when
is called - Since:
- v2
-
setConversationType
public ConversationsRequest.ConversationsRequestBuilder setConversationType(java.lang.String conversationType)
A method to set the conversation type. It can take once of the two values: 1. CometChatConstants.CONVERSATION_TYPE_USER - to fetch only the user concversations. 2. CometChatConstants.CONVERSATION_TYPE_GROUP - to fetch only the group conversations.- Parameters:
conversationType
- String value based on which the conversations are fetched.- Returns:
- ConversationsRequestBuilder object when
is called - Since:
- v2
-
withUserAndGroupTags
public ConversationsRequest.ConversationsRequestBuilder withUserAndGroupTags(boolean withUserAndGroupTags)
-
setTags
public ConversationsRequest.ConversationsRequestBuilder setTags(java.util.List<java.lang.String> tags)
-
withTags
public ConversationsRequest.ConversationsRequestBuilder withTags(boolean withTags)
-
build
public ConversationsRequest build()
-
-