public class UserConversationUpdater extends Updater<UserConversation>
Constructor and Description |
---|
UserConversationUpdater(String pathChatServiceSid,
String pathUserSid,
String pathConversationSid)
Construct a new UserConversationUpdater.
|
Modifier and Type | Method and Description |
---|---|
UserConversationUpdater |
setLastReadMessageIndex(Integer lastReadMessageIndex)
The index of the last Message in the Conversation that the Participant has
read..
|
UserConversationUpdater |
setLastReadTimestamp(ZonedDateTime lastReadTimestamp)
The date of the last message read in conversation by the user, given in ISO
8601 format..
|
UserConversationUpdater |
setNotificationLevel(UserConversation.NotificationLevel notificationLevel)
The Notification Level of this User Conversation.
|
UserConversation |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public UserConversationUpdater(String pathChatServiceSid, String pathUserSid, String pathConversationSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathUserSid
- The unique SID identifier of the User.pathConversationSid
- The unique SID identifier of the Conversation.public UserConversationUpdater setNotificationLevel(UserConversation.NotificationLevel notificationLevel)
notificationLevel
- The Notification Level of this User Conversation.public UserConversationUpdater setLastReadTimestamp(ZonedDateTime lastReadTimestamp)
lastReadTimestamp
- The date of the last message read in conversation
by the user.public UserConversationUpdater setLastReadMessageIndex(Integer lastReadMessageIndex)
lastReadMessageIndex
- The index of the last read Message.public UserConversation update(TwilioRestClient client)
update
in class Updater<UserConversation>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.