SIGN UP
Navigation

ConversationConfigBuilder

Builder for ConversationConfig

Methods

ConversationConfig build()

Create ConfigurationConfig object with previously set parameters

Returns

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

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

Parameters

  • customData:

    Map<Object,Object>

    Custom data

Returns

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

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

ConversationConfig.ConversationConfigBuilder setModerators(List<String> moderators)

Set conversation's moderators

Parameters

  • moderators:

    List<String>

    List of moderators

Returns

ConversationConfig.ConversationConfigBuilder setTitle(String title)

Set conversation title.

Parameters

  • title:

    String

    Conversation title

Returns

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