Class PlayHistory

    • Method Summary

      Modifier and Type Method Description
      PlayHistory.Builder builder()
      Create a builder for building an instance of a model object.
      Context getContext()
      Get the context the track was played from.
      java.util.Date getPlayedAt()
      Get the date and time the track was played.
      TrackSimplified getTrack()
      Get the track the user listened to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTrack

        public TrackSimplified getTrack()
        Get the track the user listened to.
        Returns:
        The (simplified) track the user listened to.
      • getPlayedAt

        public java.util.Date getPlayedAt()
        Get the date and time the track was played.
        Returns:
        The date and time the track was played.
      • getContext

        public Context getContext()
        Get the context the track was played from.
        Returns:
        The context the track was played from.
      • builder

        public PlayHistory.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.