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 classParticipant.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ParticipantFetcherfetcher(String pathRoomSid, String pathSid)static ParticipantfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Participant object using the provided ObjectMapper.static ParticipantfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Participant object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()IntegergetDuration()ZonedDateTimegetEndTime()StringgetIdentity()Map<String,String>getLinks()StringgetRoomSid()StringgetSid()ZonedDateTimegetStartTime()Participant.StatusgetStatus()URIgetUrl()inthashCode()static ParticipantReaderreader(String pathRoomSid)static ParticipantUpdaterupdater(String pathRoomSid, String pathSid)
-
-
-
Method Detail
-
fetcher
public static ParticipantFetcher fetcher(String pathRoomSid, String pathSid)
-
reader
public static ParticipantReader reader(String pathRoomSid)
-
updater
public static ParticipantUpdater updater(String pathRoomSid, String pathSid)
-
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()
-
getRoomSid
public final String getRoomSid()
-
getAccountSid
public final String getAccountSid()
-
getStatus
public final Participant.Status getStatus()
-
getIdentity
public final String getIdentity()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getStartTime
public final ZonedDateTime getStartTime()
-
getEndTime
public final ZonedDateTime getEndTime()
-
getDuration
public final Integer getDuration()
-
getUrl
public final URI getUrl()
-
-