Class Participant

    • Method Detail

      • fetcher

        public static ParticipantFetcher fetcher​(String pathRoomSid,
                                                 String pathSid)
        Create a ParticipantFetcher to execute fetch.
        Parameters:
        pathRoomSid - A system-generated 34-character string that uniquely identifies a Room.
        pathSid - A system-generated 34-character string that uniquely identifies this Participant.
        Returns:
        ParticipantFetcher capable of executing the fetch
      • reader

        public static ParticipantReader reader​(String pathRoomSid)
        Create a ParticipantReader to execute read.
        Parameters:
        pathRoomSid - A system-generated 34-character string that uniquely identifies this Room.
        Returns:
        ParticipantReader capable of executing the read
      • updater

        public static ParticipantUpdater updater​(String pathRoomSid,
                                                 String pathSid)
        Create a ParticipantUpdater to execute update.
        Parameters:
        pathRoomSid - A system-generated 34-character string that uniquely identifies a Room.
        pathSid - A system-generated 34-character string that uniquely identifies this Participant.
        Returns:
        ParticipantUpdater capable of executing the update
      • fromJson

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

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

        public final String getSid()
        Returns The A 34 character string that uniquely identifies this resource..
        Returns:
        A 34 character string that uniquely identifies this resource.
      • getRoomSid

        public final String getRoomSid()
        Returns The A system-generated 34-character string that uniquely identifies..
        Returns:
        A system-generated 34-character string that uniquely identifies.
      • getAccountSid

        public final String getAccountSid()
        Returns The The unique ID of the Account associated with this Room..
        Returns:
        The unique ID of the Account associated with this Room.
      • getStatus

        public final Participant.Status getStatus()
        Returns The A string representing the status of the Participant..
        Returns:
        A string representing the status of the Participant.
      • getIdentity

        public final String getIdentity()
        Returns The The unique name identifier that is assigned to this Participant..
        Returns:
        The unique name identifier that is assigned to this Participant.
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The date that this resource was created, given as a UTC ISO 8601 Timestamp..
        Returns:
        The date that this resource was created, given as a UTC ISO 8601 Timestamp.
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The date that this resource was last updated, given as a UTC ISO 8601 Timestamp..
        Returns:
        The date that this resource was last updated, given as a UTC ISO 8601 Timestamp.
      • getStartTime

        public final org.joda.time.DateTime getStartTime()
        Returns The The time of Participant connected to the Room, given as a UTC ISO 8601 Timestamp..
        Returns:
        The time of Participant connected to the Room, given as a UTC ISO 8601 Timestamp.
      • getEndTime

        public final org.joda.time.DateTime getEndTime()
        Returns The The time of Participant disconnected from the Room, given as a UTC ISO 8601 Timestamp..
        Returns:
        The time of Participant disconnected from the Room, given as a UTC ISO 8601 Timestamp.
      • getDuration

        public final Integer getDuration()
        Returns The Duration of time in seconds this Participant was connected..
        Returns:
        Duration of time in seconds this Participant was connected.
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL for this resource..
        Returns:
        The absolute URL for this resource.
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The The links.
        Returns:
        The links
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object