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()
ParticipantJoiningBuilder
ParticipantJoiningBuilder.fromNow()
for all conversation types except channels, where the default is ParticipantJoiningBuilder.fromBeginning()
.fromDefault
in interface ParticipantJoiningBuilder
public ConversationParticipantBuilder fromNow()
ParticipantJoiningBuilder
fromNow
in interface ParticipantJoiningBuilder
public ConversationParticipantBuilder fromBeginning()
ParticipantJoiningBuilder
fromBeginning
in interface ParticipantJoiningBuilder
public ConversationParticipantBuilder fromTime(Date joiningTime)
ParticipantJoiningBuilder
fromTime
in interface ParticipantJoiningBuilder
joiningTime
- the time from which the participant(s) will be able to see messagespublic ConversationParticipantBuilder fromMessage(String messageId)
ParticipantJoiningBuilder
fromMessage
in interface ParticipantJoiningBuilder
messageId
- the id of the message to use as the time when to join the new participantspublic ConversationParticipantBuilder fromPastMessages(int numberOfMessages)
ParticipantJoiningBuilder
fromPastMessages
in interface ParticipantJoiningBuilder
numberOfMessages
- the number of messages the new participants will be able to readpublic ConversationParticipantBuilder fromDuration(Duration duration)
ParticipantJoiningBuilder
fromDuration
in interface ParticipantJoiningBuilder
duration
- the duration to go into the past to join the new participant(s)public JoinParticipantsData getJoinParticipantsData()