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