public class SubscribedTrack extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
SubscribedTrack.Kind |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static SubscribedTrackFetcher |
fetcher(String pathRoomSid,
String pathParticipantSid,
String pathSid)
Create a SubscribedTrackFetcher to execute fetch.
|
static SubscribedTrack |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SubscribedTrack object using the provided
ObjectMapper.
|
static SubscribedTrack |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SubscribedTrack object using the provided
ObjectMapper.
|
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.
|
Boolean |
getEnabled()
Returns Whether the track is enabled.
|
SubscribedTrack.Kind |
getKind()
Returns The track type.
|
String |
getName()
Returns The track name.
|
String |
getParticipantSid()
Returns The SID of the participant that subscribes to the track.
|
String |
getPublisherSid()
Returns The SID of the participant that publishes the track.
|
String |
getRoomSid()
Returns The SID of the room where the track is published.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
static SubscribedTrackReader |
reader(String pathRoomSid,
String pathParticipantSid)
Create a SubscribedTrackReader to execute read.
|
public static SubscribedTrackFetcher fetcher(String pathRoomSid, String pathParticipantSid, String pathSid)
pathRoomSid
- The SID of the Room where the Track resource to fetch is
subscribedpathParticipantSid
- The SID of the participant that subscribes to the
Track resource to fetchpathSid
- The SID that identifies the resource to fetchpublic static SubscribedTrackReader reader(String pathRoomSid, String pathParticipantSid)
pathRoomSid
- The SID of the Room resource with the Track resources to
readpathParticipantSid
- The SID of the participant that subscribes to the
Track resources to readpublic static SubscribedTrack fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static SubscribedTrack fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getParticipantSid()
public final String getPublisherSid()
public final String getRoomSid()
public final String getName()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final Boolean getEnabled()
public final SubscribedTrack.Kind getKind()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.