SIGN UP

ConversationConfigBuilder

Builder for ConversationConfig

Methods

build

ConversationConfig build()

Create ConfigurationConfig object with previously set parameters

Returns

setCustomData

ConversationConfig.ConversationConfigBuilder setCustomData(Map<Object,Object> customData)

Set custom data of a conversation (up to 5kb)

Parameters

  • customData:

    Map<Object,Object>

    Custom data

Returns

  • Return:

    ConversationConfig.ConversationConfigBuilder

    ConversationConfigBuilder object

setDistinct

ConversationConfig.ConversationConfigBuilder setDistinct(boolean distinct)

Set 'distinct' parameter of a conversation.

Parameters

  • distinct:

    boolean

    If two conversations are created with same set of users and moderators and both have 'distinct' flag, second create call will fail with the UUID of conversation already created. Note that changing users or moderators list will clear 'distinct' flag.

Returns

  • Return:

    ConversationConfig.ConversationConfigBuilder

    ConversationConfigBuilder object

setEnablePublicJoin

ConversationConfig.ConversationConfigBuilder setEnablePublicJoin(boolean enablePublicJoin)

Allow/disallow public join for a conversation.

Parameters

  • enablePublicJoin:

    boolean

    If set to 'true', anyone can join conversation by uuid

Returns

  • Return:

    ConversationConfig.ConversationConfigBuilder

    ConversationConfigBuilder object

setModerators

ConversationConfig.ConversationConfigBuilder setModerators(List<String> moderators)

Set conversation's moderators

Parameters

  • moderators:

    List<String>

    List of moderators

Returns

  • Return:

    ConversationConfig.ConversationConfigBuilder

    ConversationConfigBuilder object

setTitle

ConversationConfig.ConversationConfigBuilder setTitle(String title)

Set conversation title.

Parameters

  • title:

    String

    Conversation title

Returns

  • Return:

    ConversationConfig.ConversationConfigBuilder

    ConversationConfigBuilder object

setUberConversation

ConversationConfig.ConversationConfigBuilder setUberConversation(boolean isUberConversation)

Specify if the conversation is uber conversation. Users in uber conversation will not be able to retrieve messages that were posted to conversation after they left them.

Parameters

  • isUberConversation:

    boolean

    If set to 'true', conversation will restrict access to messages.

Returns

  • Return:

    ConversationConfig.ConversationConfigBuilder

    ConversationConfigBuilder object