Class ConversationsRequest.ConversationsRequestBuilder

  • Enclosing class:
    ConversationsRequest

    public static class ConversationsRequest.ConversationsRequestBuilder
    extends java.lang.Object
    • Constructor Detail

      • ConversationsRequestBuilder

        public ConversationsRequestBuilder()
    • 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