Class MemberUpdater

    • 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 under
        pathChannelSid - The unique ID of the channel the member to update belongs to
        pathSid - 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.
        Specified by:
        update in class Updater<Member>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Member