ConversationConfigBuilder
Builder for ConversationConfig.
Methods
build
build()
Creates and returns the ConversationConfig object this builder represents.
Returns
type:
setCustomData
setCustomData(Map<String, Object>
customData)
Specifies 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)
Sets the conversation as direct or not (see ConversationConfig.isDirect()).
A direct conversation cannot be uber and/or public.
Parameters
direct:
boolean
Returns
setParticipants
setParticipants(List<ConversationParticipant>
participants)
Sets the conversation's participants.
The participants list can be later changed via:
Parameters
participants:
List<ConversationParticipant>
List of participants
Returns
setPublicJoin
setPublicJoin(boolean
publicJoin)
Sets the conversation as public or not.
It can be later changed via IConversation.setPublicJoin(boolean).
A public conversation cannot be direct.
Parameters
publicJoin:
boolean
Whether anyone can join the conversation by UUID
Returns
setTitle
setTitle(String
title)
Sets the conversation title.
It can be later changed via IConversation.setTitle(String).
Parameters
title:
String
Conversation title
Returns
setUber
setUber(boolean
isUber)
Sets the conversation as uber or not.
Users in a uber conversation cannot retrieve messages that have been posted to the conversation after they quit.
A uber conversation cannot be direct.
Parameters
isUber:
boolean
Whether conversation restricts access to messages.