Class Song

  • All Implemented Interfaces:
    HasLocation, Extendable, Serializable, Cloneable

    public class Song
    extends ActivityObject

    The "song" Object type represents a song or a recording of a song.

    Objects of type Song might contain information about the song or recording, or they might contain some representation of the recording itself. In the latter case, the song SHOULD also be annotated with the "audio" object type as described in Section 3.2.2 (Audio) and use its properties. This type should only be used when the publisher can guarantee that the object is a song rather than merely a generic audio stream.

    The Object type URL for the "song" Object type is http://activitystrea.ms/schema/1.0/song.

    A song has no additional components.

    See Also:
    Serialized Form
    • Constructor Detail

      • Song

        public Song()
    • Method Detail

      • setAudio

        public void setAudio​(Audio newaudio)
        Set the value of audio
        Parameters:
        newaudio - new value of audio
      • getAudio

        public Audio getAudio()
        Get the value of audio
        Returns:
        the value of audio