public class UserChannelUpdater extends Updater<UserChannel>
Constructor and Description |
---|
UserChannelUpdater(String pathServiceSid,
String pathUserSid,
String pathChannelSid)
Construct a new UserChannelUpdater.
|
Modifier and Type | Method and Description |
---|---|
UserChannelUpdater |
setLastConsumedMessageIndex(Integer lastConsumedMessageIndex)
|
UserChannelUpdater |
setLastConsumptionTimestamp(ZonedDateTime lastConsumptionTimestamp)
|
UserChannelUpdater |
setNotificationLevel(UserChannel.NotificationLevel notificationLevel)
The push notification level to assign to the User Channel.
|
UserChannel |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public UserChannelUpdater(String pathServiceSid, String pathUserSid, String pathChannelSid)
pathServiceSid
- The SID of the Service to update the resource frompathUserSid
- The SID of the User to update the User Channel resource
frompathChannelSid
- The SID of the Channel with the User Channel resource
to updatepublic UserChannelUpdater setNotificationLevel(UserChannel.NotificationLevel notificationLevel)
notificationLevel
- The push notification level to assign to the User
Channelpublic UserChannelUpdater setLastConsumedMessageIndex(Integer lastConsumedMessageIndex)
lastConsumedMessageIndex
- The index of the last Message that the
Member has read within the Channelpublic UserChannelUpdater setLastConsumptionTimestamp(ZonedDateTime lastConsumptionTimestamp)
lastConsumptionTimestamp
- The ISO 8601 based timestamp string that
represents the datetime of the last Message
read event for the Member within the Channelpublic UserChannel update(TwilioRestClient client)
update
in class Updater<UserChannel>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.