Class PublishedTrack

    • Method Detail

      • fetcher

        public static PublishedTrackFetcher fetcher​(String pathRoomSid,
                                                    String pathParticipantSid,
                                                    String pathSid)
        Create a PublishedTrackFetcher to execute fetch.
        Parameters:
        pathRoomSid - Unique Room identifier where this Track is published.
        pathParticipantSid - Unique Participant identifier that publishes this Track.
        pathSid - A 34 character string that uniquely identifies this resource.
        Returns:
        PublishedTrackFetcher capable of executing the fetch
      • reader

        public static PublishedTrackReader reader​(String pathRoomSid,
                                                  String pathParticipantSid)
        Create a PublishedTrackReader to execute read.
        Parameters:
        pathRoomSid - Unique Room identifier where this Track is published.
        pathParticipantSid - Unique Participant identifier that publishes this Track.
        Returns:
        PublishedTrackReader capable of executing the read
      • fromJson

        public static PublishedTrack fromJson​(String json,
                                              com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a PublishedTrack object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        PublishedTrack object represented by the provided JSON
      • fromJson

        public static PublishedTrack fromJson​(InputStream json,
                                              com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a PublishedTrack object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        PublishedTrack object represented by the provided JSON
      • getSid

        public final String getSid()
        Returns The A 34 character string that uniquely identifies this resource..
        Returns:
        A 34 character string that uniquely identifies this resource.
      • getParticipantSid

        public final String getParticipantSid()
        Returns The Unique Participant identifier that publishes this Track..
        Returns:
        Unique Participant identifier that publishes this Track.
      • getRoomSid

        public final String getRoomSid()
        Returns The Unique Room identifier where this Track is published..
        Returns:
        Unique Room identifier where this Track is published.
      • getName

        public final String getName()
        Returns The Track name. Limited to 128 characters..
        Returns:
        Track name. Limited to 128 characters.
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The date that this resource was created..
        Returns:
        The date that this resource was created.
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The date that this resource was last updated..
        Returns:
        The date that this resource was last updated.
      • getEnabled

        public final Boolean getEnabled()
        Returns The Specifies whether the Track is enabled or not..
        Returns:
        Specifies whether the Track is enabled or not.
      • getKind

        public final PublishedTrack.Kind getKind()
        Returns The Specifies whether Track represents `audio`, `video` or `data`.
        Returns:
        Specifies whether Track represents `audio`, `video` or `data`
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL for this resource..
        Returns:
        The absolute URL for this resource.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object