Package com.twilio.rest.video.v1.room
Class Participant
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.video.v1.room.Participant
-
- All Implemented Interfaces:
Serializable
public class Participant extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Participant.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ParticipantFetcher
fetcher(String pathRoomSid, String pathSid)
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 The The unique ID of the Account associated with this Room..org.joda.time.DateTime
getDateCreated()
Returns The The date that this resource was created, given as a UTC ISO 8601 Timestamp..org.joda.time.DateTime
getDateUpdated()
Returns The The date that this resource was last updated, given as a UTC ISO 8601 Timestamp..Integer
getDuration()
Returns The Duration of time in seconds this Participant was connected..org.joda.time.DateTime
getEndTime()
Returns The The time of Participant disconnected from the Room, given as a UTC ISO 8601 Timestamp..String
getIdentity()
Returns The The unique name identifier that is assigned to this Participant..Map<String,String>
getLinks()
Returns The The links.String
getRoomSid()
Returns The A system-generated 34-character string that uniquely identifies..String
getSid()
Returns The A 34 character string that uniquely identifies this resource..org.joda.time.DateTime
getStartTime()
Returns The The time of Participant connected to the Room, given as a UTC ISO 8601 Timestamp..Participant.Status
getStatus()
Returns The A string representing the status of the Participant..URI
getUrl()
Returns The The absolute URL for this resource..int
hashCode()
static ParticipantReader
reader(String pathRoomSid)
Create a ParticipantReader to execute read.String
toString()
static ParticipantUpdater
updater(String pathRoomSid, String pathSid)
Create a ParticipantUpdater to execute update.
-
-
-
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 StringobjectMapper
- 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 InputStreamobjectMapper
- 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.
-
-