Class PlayHistory
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.specification.PlayHistory
-
- All Implemented Interfaces:
IModelObject
public class PlayHistory extends AbstractModelObject
Retrieve information about Play History objects by building instances from this class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlayHistory.BuilderBuilder class for buildingPlayHistoryinstances.static classPlayHistory.JsonUtilJsonUtil class for buildingPlayHistoryinstances.-
Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayHistory.Builderbuilder()Create a builder for building an instance of a model object.ContextgetContext()Get the context the track was played from.DategetPlayedAt()Get the date and time the track was played.TrackSimplifiedgetTrack()Get the track the user listened to.
-
-
-
Method Detail
-
getTrack
public TrackSimplified getTrack()
Get the track the user listened to.- Returns:
- The (simplified) 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.
-
builder
public PlayHistory.Builder builder()
Description copied from interface:IModelObjectCreate 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.
-
-