public interface ConversationParticipantBuilder
builder.joinParticipant("someUserId").fromBeginning().dropParticipant("someOtherUserId").save();
Modifier and Type | Method and Description |
---|---|
ConversationParticipantBuilder |
dropParticipant(String userId)
Drops the given participant from the conversation.
|
ConversationParticipantBuilder |
dropParticipants(Collection<String> userIds)
Drops the given participants from the conversation.
|
ConversationParticipantBuilder |
dropParticipants(String... userIds)
Drops the given participants from the conversation.
|
ParticipantJoiningBuilder |
joinParticipant(String userId)
Joins a single participant.
|
ParticipantJoiningBuilder |
joinParticipants(Collection<String> userIds)
Joins a collection of participants.
|
ParticipantJoiningBuilder |
joinParticipants(String... userIds)
Joins one or more participants.
|
void |
save()
Executes all collected join and drop commands and saves them.
|
ParticipantJoiningBuilder joinParticipant(String userId)
userId
- the id of the user to be added as a new participantParticipantJoiningBuilder joinParticipants(String... userIds)
userIds
- the ids of the users to be added as a new participantsParticipantJoiningBuilder joinParticipants(Collection<String> userIds)
userIds
- the ids of the users to be added as a new participantsConversationParticipantBuilder dropParticipant(String userId)
userId
- the user to be dropped from the conversationConversationParticipantBuilder dropParticipants(String... userIds)
userIds
- the users to be dropped from the conversationConversationParticipantBuilder dropParticipants(Collection<String> userIds)
userIds
- the users to be dropped from the conversationvoid save()