Class Member

    • Method Detail

      • fetcher

        public static MemberFetcher fetcher​(String pathServiceSid,
                                            String pathChannelSid,
                                            String pathSid)
        Create a MemberFetcher to execute fetch.
        Parameters:
        pathServiceSid - The SID of the Service to fetch the resource from
        pathChannelSid - The unique ID of the channel the member belongs to
        pathSid - The unique string that identifies the resource
        Returns:
        MemberFetcher capable of executing the fetch
      • creator

        public static MemberCreator creator​(String pathServiceSid,
                                            String pathChannelSid,
                                            String identity)
        Create a MemberCreator to execute create.
        Parameters:
        pathServiceSid - The SID of the Service to create the resource under
        pathChannelSid - The unique ID of the channel the new member belongs to
        identity - The `identity` value that identifies the new resource's User
        Returns:
        MemberCreator capable of executing the create
      • reader

        public static MemberReader reader​(String pathServiceSid,
                                          String pathChannelSid)
        Create a MemberReader to execute read.
        Parameters:
        pathServiceSid - The SID of the Service to read the resources from
        pathChannelSid - The unique ID of the channel the member belongs to
        Returns:
        MemberReader capable of executing the read
      • deleter

        public static MemberDeleter deleter​(String pathServiceSid,
                                            String pathChannelSid,
                                            String pathSid)
        Create a MemberDeleter to execute delete.
        Parameters:
        pathServiceSid - The SID of the Service to delete the resource from
        pathChannelSid - The unique ID of the channel the message to delete belongs to
        pathSid - The unique string that identifies the resource
        Returns:
        MemberDeleter capable of executing the delete
      • updater

        public static MemberUpdater updater​(String pathServiceSid,
                                            String pathChannelSid,
                                            String pathSid)
        Create a MemberUpdater to execute update.
        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
        Returns:
        MemberUpdater capable of executing the update
      • fromJson

        public static Member fromJson​(String json,
                                      com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Member object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Member object represented by the provided JSON
      • fromJson

        public static Member fromJson​(InputStream json,
                                      com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Member object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Member object represented by the provided JSON
      • getSid

        public final String getSid()
        Returns The The unique string that identifies the resource.
        Returns:
        The unique string that identifies the resource
      • getAccountSid

        public final String getAccountSid()
        Returns The The SID of the Account that created the resource.
        Returns:
        The SID of the Account that created the resource
      • getChannelSid

        public final String getChannelSid()
        Returns The The unique ID of the Channel for the member.
        Returns:
        The unique ID of the Channel for the member
      • getServiceSid

        public final String getServiceSid()
        Returns The The SID of the Service that the resource is associated with.
        Returns:
        The SID of the Service that the resource is associated with
      • getIdentity

        public final String getIdentity()
        Returns The The string that identifies the resource's User.
        Returns:
        The string that identifies the resource's User
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The RFC 2822 date and time in GMT when the resource was created.
        Returns:
        The RFC 2822 date and time in GMT when the resource was created
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The RFC 2822 date and time in GMT when the resource was last updated.
        Returns:
        The RFC 2822 date and time in GMT when the resource was last updated
      • getRoleSid

        public final String getRoleSid()
        Returns The The SID of the Role assigned to the member.
        Returns:
        The SID of the Role assigned to the member
      • getLastConsumedMessageIndex

        public final Integer getLastConsumedMessageIndex()
        Returns The The index of the last Message that the Member has read within the Channel.
        Returns:
        The index of the last Message that the Member has read within the Channel
      • getLastConsumptionTimestamp

        public final org.joda.time.DateTime getLastConsumptionTimestamp()
        Returns The The ISO 8601 based timestamp string that represents the date-time of the last Message read event for the Member within the Channel.
        Returns:
        The ISO 8601 based timestamp string that represents the date-time of the last Message read event for the Member within the Channel
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL of the Member resource.
        Returns:
        The absolute URL of the Member resource
      • getAttributes

        public final String getAttributes()
        Returns The The JSON string that stores application-specific data.
        Returns:
        The JSON string that stores application-specific data
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object