SIGN UP

ConversationConfigBuilder

Builder for ConversationConfig.

Methods

build

ConversationConfig build()

Create and returns the ConversationConfig object this builder represents.

Returns

setCustomData

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

Specify a custom data of the conversation (up to 5kb).

The custom data can be later changed via IConversation.setCustomData(Map).

Parameters

  • customData:

    Map<String,Object>

    Custom data

Returns

setDirect

ConversationConfig.ConversationConfigBuilder setDirect(boolean direct)

Set if the conversation is direct (see ConversationConfig.isDirect()).

A direct conversation can't be uber and/or public.

Parameters

  • direct:

    boolean

Returns

setParticipants

ConversationConfig.ConversationConfigBuilder setParticipants(List<ConversationParticipant> participants)

Parameters

Returns

setPublicJoin

ConversationConfig.ConversationConfigBuilder setPublicJoin(boolean publicJoin)

Set the conversation to be public or not.

It can be later changed via IConversation.setPublicJoin(boolean).

A public conversation can't be direct.

Parameters

  • publicJoin:

    boolean

    If true, anyone can join the conversation by UUID

Returns

setTitle

ConversationConfig.ConversationConfigBuilder setTitle(String title)

Set the conversation title.

It can be later changed via IConversation.setTitle(String).

Parameters

  • title:

    String

    Conversation title

Returns

setUber

ConversationConfig.ConversationConfigBuilder setUber(boolean isUber)

Set if the conversation is a uber conversation.

Users in a uber conversation will not be able to retrieve messages that were posted to the conversation after they quit.

A uber conversation can't be direct.

Parameters

  • isUber:

    boolean

    If true, conversation will restrict access to messages.

Returns