ConversationConfigBuilder
Builder for ConversationConfig.
Methods
build
build()
Create and returns the ConversationConfig object this builder represents.
Returns
type:
setCustomData
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
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
setParticipants(List<ConversationParticipant>
participants)
Set the conversation participants.
The participants list can be later changed via:
Parameters
participants:
List<ConversationParticipant>
List of participants
Returns
setPublicJoin
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
setTitle(String
title)
Set the conversation title.
It can be later changed via IConversation.setTitle(String).
Parameters
title:
String
Conversation title
Returns
setUber
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.