Class MemberUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Member>
-
- com.twilio.rest.chat.v1.service.channel.MemberUpdater
-
-
Constructor Summary
Constructors Constructor Description MemberUpdater(String pathServiceSid, String pathChannelSid, String pathSid)
Construct a new MemberUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberUpdater
setLastConsumedMessageIndex(Integer lastConsumedMessageIndex)
The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels)..MemberUpdater
setRoleSid(String roleSid)
The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member.Member
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Constructor Detail
-
MemberUpdater
public MemberUpdater(String pathServiceSid, String pathChannelSid, String pathSid)
Construct a new MemberUpdater.- Parameters:
pathServiceSid
- The SID of the Service to create the resource underpathChannelSid
- The unique ID of the channel the member to update belongs topathSid
- The unique string that identifies the resource
-
-
Method Detail
-
setRoleSid
public MemberUpdater setRoleSid(String roleSid)
The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services)..- Parameters:
roleSid
- The SID of the Role to assign to the member- Returns:
- this
-
setLastConsumedMessageIndex
public MemberUpdater setLastConsumedMessageIndex(Integer lastConsumedMessageIndex)
The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels)..- Parameters:
lastConsumedMessageIndex
- The index of the last consumed Message for the Channel for the Member- Returns:
- this
-
update
public Member update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
-
-