public class ParticipantJoiningBuilderImpl extends Object implements ParticipantJoiningBuilder
| Modifier and Type | Field and Description |
|---|---|
protected JoinParticipantsData |
joinParticipantsData |
protected ConversationParticipantBuilder |
rootBuilder |
| Constructor and Description |
|---|
ParticipantJoiningBuilderImpl(ConversationParticipantBuilder rootBuilder,
JoinParticipantsData joinParticipantsData) |
| Modifier and Type | Method and Description |
|---|---|
ConversationParticipantBuilder |
fromBeginning()
Will join the selected participant(s) from the beginning of the conversation.
|
ConversationParticipantBuilder |
fromDefault()
Just use the default behaviour which is
ParticipantJoiningBuilder.fromNow() for all conversation types except channels, where the default is ParticipantJoiningBuilder.fromBeginning(). |
ConversationParticipantBuilder |
fromDuration(Duration duration)
Will join the selected participant(s) from the past in the given duration, so they can read messages from the past.
|
ConversationParticipantBuilder |
fromMessage(String messageId)
Will join the selected participant(s) from the time of when the given message was posted, in order to be able to read that message and every one after
it.
|
ConversationParticipantBuilder |
fromNow()
This will join the new participants as of now so they can only see the new messages after being joined.
|
ConversationParticipantBuilder |
fromPastMessages(int numberOfMessages)
Will join the selected participant(s) from the creation time of x messages back (basically the new participants will be able to read those x messaages).
|
ConversationParticipantBuilder |
fromTime(Date joiningTime)
Will join the selected participant(s) from the given absolute timestamp.
|
JoinParticipantsData |
getJoinParticipantsData() |
protected final ConversationParticipantBuilder rootBuilder
protected final JoinParticipantsData joinParticipantsData
public ParticipantJoiningBuilderImpl(ConversationParticipantBuilder rootBuilder, JoinParticipantsData joinParticipantsData)
public ConversationParticipantBuilder fromDefault()
ParticipantJoiningBuilderParticipantJoiningBuilder.fromNow() for all conversation types except channels, where the default is ParticipantJoiningBuilder.fromBeginning().fromDefault in interface ParticipantJoiningBuilderpublic ConversationParticipantBuilder fromNow()
ParticipantJoiningBuilderfromNow in interface ParticipantJoiningBuilderpublic ConversationParticipantBuilder fromBeginning()
ParticipantJoiningBuilderfromBeginning in interface ParticipantJoiningBuilderpublic ConversationParticipantBuilder fromTime(Date joiningTime)
ParticipantJoiningBuilderfromTime in interface ParticipantJoiningBuilderjoiningTime - the time from which the participant(s) will be able to see messagespublic ConversationParticipantBuilder fromMessage(String messageId)
ParticipantJoiningBuilderfromMessage in interface ParticipantJoiningBuildermessageId - the id of the message to use as the time when to join the new participantspublic ConversationParticipantBuilder fromPastMessages(int numberOfMessages)
ParticipantJoiningBuilderfromPastMessages in interface ParticipantJoiningBuildernumberOfMessages - the number of messages the new participants will be able to readpublic ConversationParticipantBuilder fromDuration(Duration duration)
ParticipantJoiningBuilderfromDuration in interface ParticipantJoiningBuilderduration - the duration to go into the past to join the new participant(s)public JoinParticipantsData getJoinParticipantsData()