ConversationConfig
Configuration either to create a new conversation or restore a previously created conversation:
Methods
createBuilder
createBuilder()
Creates a builder for the ConversationConfig object.
Returns
getCustomData
Map<String, Object>
getCustomData()
Gets the custom data.
Returns
type:
Map<String, Object>
getParticipants
List<ConversationParticipant>
getParticipants()
Gets the list of conversation participants.
Returns
type:
List<ConversationParticipant>
getTitle
String
getTitle()
Gets the title.
Returns
type:
String
isDirect
boolean
isDirect()
Whether a conversation is configured as direct or not.
There can be only 2 participants in a direct conversation which is unique and the only one for these participants. There cannot be more than 1 direct conversation for the same 2 users.
If one of these users tries to create a new direct conversation with the same participant via IMessenger.createConversation(ConversationConfig, IMessengerCompletionHandler), the method returns the UUID of the already existing direct conversation.
A direct conversation cannot be uber and/or public.
Returns
type:
boolean
isPublicJoin
boolean
isPublicJoin()
Whether a conversation is configured as public or not.
In public conversations any user can join the conversation via IMessenger.joinConversation(String, IMessengerCompletionHandler) by specifying its UUID. Use the IMessenger.getPublicConversations(IMessengerCompletionHandler) method to retrieve all public conversations' UUIDs.
A public conversation cannot be direct.
Returns
type:
boolean
isUber
boolean
isUber()
Whether a conversation is configured as uber or not.
Users in a uber conversation cannot retrieve messages that have been sent to the conversation after they quit.
A uber conversation cannot be direct.
Returns
type:
boolean