java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.PlayHistory
All Implemented Interfaces:
Serializable, IModelObject

public class PlayHistory extends AbstractModelObject
Retrieve information about Play History objects by building instances from this class.
See Also:
  • Method Details

    • getTrack

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

      public 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.
    • toString

      public String toString()
      Description copied from class: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • 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.