public class Room extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Room.RoomStatus |
static class |
Room.RoomType |
static class |
Room.VideoCodec |
Modifier and Type | Method and Description |
---|---|
static RoomCreator |
creator()
Create a RoomCreator to execute create.
|
boolean |
equals(Object o) |
static RoomFetcher |
fetcher(String pathSid)
Create a RoomFetcher to execute fetch.
|
static Room |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Room object using the provided
ObjectMapper.
|
static Room |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Room object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
Integer |
getDuration()
Returns The duration of the room in seconds.
|
Boolean |
getEnableTurn()
Returns Enable Twilio's Network Traversal TURN service.
|
ZonedDateTime |
getEndTime()
Returns The UTC end time of the room in UTC ISO 8601 format.
|
Map<String,String> |
getLinks()
Returns The URLs of related resources.
|
Integer |
getMaxConcurrentPublishedTracks()
Returns The maximum number of published tracks allowed in the room at the
same time.
|
Integer |
getMaxParticipants()
Returns The maximum number of concurrent Participants allowed in the room.
|
String |
getMediaRegion()
Returns The region for the media server in Group Rooms.
|
Boolean |
getRecordParticipantsOnConnect()
Returns Whether to start recording when Participants connect.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Room.RoomStatus |
getStatus()
Returns The status of the room.
|
URI |
getStatusCallback()
Returns The URL to send status information to your application.
|
HttpMethod |
getStatusCallbackMethod()
Returns The HTTP method we use to call status_callback.
|
Room.RoomType |
getType()
Returns The type of room.
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
List<Room.VideoCodec> |
getVideoCodecs()
Returns An array of the video codecs that are supported when publishing a
track in the room.
|
int |
hashCode() |
static RoomReader |
reader()
Create a RoomReader to execute read.
|
static RoomUpdater |
updater(String pathSid,
Room.RoomStatus status)
Create a RoomUpdater to execute update.
|
public static RoomFetcher fetcher(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static RoomCreator creator()
public static RoomReader reader()
public static RoomUpdater updater(String pathSid, Room.RoomStatus status)
pathSid
- The SID that identifies the resource to updatestatus
- The new status of the resourcepublic static Room fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Room fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final Room.RoomStatus getStatus()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getAccountSid()
public final Boolean getEnableTurn()
public final String getUniqueName()
public final URI getStatusCallback()
public final HttpMethod getStatusCallbackMethod()
public final ZonedDateTime getEndTime()
public final Integer getDuration()
public final Room.RoomType getType()
public final Integer getMaxParticipants()
public final Integer getMaxConcurrentPublishedTracks()
public final Boolean getRecordParticipantsOnConnect()
public final List<Room.VideoCodec> getVideoCodecs()
public final String getMediaRegion()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.