public class Participant extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Participant.Codec |
static class |
Participant.EdgeLocation |
static class |
Participant.RoomStatus |
static class |
Participant.TwilioRealm |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ParticipantFetcher |
fetcher(String pathRoomSid,
String pathParticipantSid)
Create a ParticipantFetcher to execute fetch.
|
static Participant |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Participant object using the provided
ObjectMapper.
|
static Participant |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Participant object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns Account SID associated with the room..
|
List<Participant.Codec> |
getCodecs()
Returns Codecs detected from the participant..
|
Long |
getDurationSec()
Returns Amount of time in seconds the participant was in the room..
|
Participant.EdgeLocation |
getEdgeLocation()
Returns Name of the edge location the participant connected to..
|
String |
getEndReason()
Returns Reason the participant left the room..
|
Integer |
getErrorCode()
Returns Errors encountered by the participant..
|
String |
getErrorCodeUrl()
Returns Twilio error code dictionary link..
|
ZonedDateTime |
getJoinTime()
Returns When the participant joined the room..
|
ZonedDateTime |
getLeaveTime()
Returns When the participant left the room.
|
Participant.TwilioRealm |
getMediaRegion()
Returns Twilio media region the participant connected to..
|
String |
getParticipantIdentity()
Returns The application-defined string that uniquely identifies the
participant within a Room..
|
String |
getParticipantSid()
Returns Unique identifier for the participant..
|
Map<String,Object> |
getProperties()
Returns Object containing information about the participant's data from the
room..
|
Map<String,Object> |
getPublisherInfo()
Returns Object containing information about the SDK name and version..
|
String |
getRoomSid()
Returns Unique identifier for the room..
|
Participant.RoomStatus |
getStatus()
Returns Status of the room..
|
URI |
getUrl()
Returns URL of the participant resource..
|
int |
hashCode() |
static ParticipantReader |
reader(String pathRoomSid)
Create a ParticipantReader to execute read.
|
public static ParticipantFetcher fetcher(String pathRoomSid, String pathParticipantSid)
pathRoomSid
- The SID of the Room resource.pathParticipantSid
- The SID of the Participant resource.public static ParticipantReader reader(String pathRoomSid)
pathRoomSid
- The SID of the Room resource.public static Participant fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Participant fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getParticipantSid()
public final String getParticipantIdentity()
public final ZonedDateTime getJoinTime()
public final ZonedDateTime getLeaveTime()
public final Long getDurationSec()
public final String getAccountSid()
public final String getRoomSid()
public final Participant.RoomStatus getStatus()
public final List<Participant.Codec> getCodecs()
public final String getEndReason()
public final Integer getErrorCode()
public final String getErrorCodeUrl()
public final Participant.TwilioRealm getMediaRegion()
public final Map<String,Object> getProperties()
public final Participant.EdgeLocation getEdgeLocation()
public final Map<String,Object> getPublisherInfo()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.