Package com.twilio.rest.video.v1
Class Recording
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.video.v1.Recording
-
- All Implemented Interfaces:
Serializable
public class Recording extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Recording.Codec
static class
Recording.Format
static class
Recording.Status
static class
Recording.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordingDeleter
deleter(String pathSid)
Create a RecordingDeleter to execute delete.boolean
equals(Object o)
static RecordingFetcher
fetcher(String pathSid)
Create a RecordingFetcher to execute fetch.static Recording
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Recording object using the provided ObjectMapper.static Recording
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Recording object using the provided ObjectMapper.String
getAccountSid()
Returns The Twilio Account SID..Recording.Codec
getCodec()
Returns The The codec used to encode the track..Recording.Format
getContainerFormat()
Returns The The file format for this Recording..org.joda.time.DateTime
getDateCreated()
Returns The Date when the media recording began writing..Integer
getDuration()
Returns The Duration of the Recording in seconds..Map<String,Object>
getGroupingSids()
Returns The A list of Sids related to this Recording..Map<String,String>
getLinks()
Returns The The links.Long
getOffset()
Returns The Offset in milliseconds for this track..String
getSid()
Returns The A 34-character string that uniquely identifies this Recording..Long
getSize()
Returns The Size of the recorded track, in bytes..String
getSourceSid()
Returns The A 34-character string that uniquely identifies the source of this Recording..Recording.Status
getStatus()
Returns The The status of the Recording..String
getTrackName()
Returns The The name that was given to the source track of this recording..Recording.Type
getType()
Returns The Indicates the media type for this recording..URI
getUrl()
Returns The The absolute URL for this resource..int
hashCode()
static RecordingReader
reader()
Create a RecordingReader to execute read.String
toString()
-
-
-
Method Detail
-
fetcher
public static RecordingFetcher fetcher(String pathSid)
Create a RecordingFetcher to execute fetch.- Parameters:
pathSid
- The Recording Sid that uniquely identifies the Recording to fetch.- Returns:
- RecordingFetcher capable of executing the fetch
-
reader
public static RecordingReader reader()
Create a RecordingReader to execute read.- Returns:
- RecordingReader capable of executing the read
-
deleter
public static RecordingDeleter deleter(String pathSid)
Create a RecordingDeleter to execute delete.- Parameters:
pathSid
- The Recording Sid that uniquely identifies the Recording to delete.- Returns:
- RecordingDeleter capable of executing the delete
-
fromJson
public static Recording fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Recording object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Recording object represented by the provided JSON
-
fromJson
public static Recording fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Recording object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Recording object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The Twilio Account SID..- Returns:
- Twilio Account SID.
-
getStatus
public final Recording.Status getStatus()
Returns The The status of the Recording..- Returns:
- The status of the Recording.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The Date when the media recording began writing..- Returns:
- Date when the media recording began writing.
-
getSid
public final String getSid()
Returns The A 34-character string that uniquely identifies this Recording..- Returns:
- A 34-character string that uniquely identifies this Recording.
-
getSourceSid
public final String getSourceSid()
Returns The A 34-character string that uniquely identifies the source of this Recording..- Returns:
- A 34-character string that uniquely identifies the source of this Recording.
-
getSize
public final Long getSize()
Returns The Size of the recorded track, in bytes..- Returns:
- Size of the recorded track, in bytes.
-
getUrl
public final URI getUrl()
Returns The The absolute URL for this resource..- Returns:
- The absolute URL for this resource.
-
getType
public final Recording.Type getType()
Returns The Indicates the media type for this recording..- Returns:
- Indicates the media type for this recording.
-
getDuration
public final Integer getDuration()
Returns The Duration of the Recording in seconds..- Returns:
- Duration of the Recording in seconds.
-
getContainerFormat
public final Recording.Format getContainerFormat()
Returns The The file format for this Recording..- Returns:
- The file format for this Recording.
-
getCodec
public final Recording.Codec getCodec()
Returns The The codec used to encode the track..- Returns:
- The codec used to encode the track.
-
getGroupingSids
public final Map<String,Object> getGroupingSids()
Returns The A list of Sids related to this Recording..- Returns:
- A list of Sids related to this Recording.
-
getTrackName
public final String getTrackName()
Returns The The name that was given to the source track of this recording..- Returns:
- The name that was given to the source track of this recording.
-
getOffset
public final Long getOffset()
Returns The Offset in milliseconds for this track..- Returns:
- Offset in milliseconds for this track.
-
-