Class CurrentlyPlaying

    • Method Detail

      • getContext

        public Context getContext()
        Get the context the track was played from.
        Returns:
        The context the track was played from. Can be null.
      • getTimestamp

        public java.lang.Long getTimestamp()
        Get the timestamp when the recieved data was fetched.
        Returns:
        Unix Millisecond Timestamp when data was fetched.
      • getProgress_ms

        public java.lang.Integer getProgress_ms()
        Get the progress of the current played track.
        Returns:
        Progress into the currently playing track. Can be null.
      • getIs_playing

        public java.lang.Boolean getIs_playing()
        Check if something is played at the moment.
        Returns:
        If something is currently playing.
      • getItem

        public Track getItem()
        Get the currently played track.
        Returns:
        The currently playing track. Can be null.
      • builder

        public CurrentlyPlaying.Builder builder()
        Description copied from interface: IModelObject
        Create a builder for building an instance of a model object.
        The type of the builder and its methods depend on its corresponding implementation.
        Returns:
        A builder object.