Class Recording

    • 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 String
        objectMapper - 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 InputStream
        objectMapper - 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.
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The The links.
        Returns:
        The links
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object