public static final class PlayHistory.Builder extends AbstractModelObject.Builder
PlayHistory instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PlayHistory |
build()
Build a model object with the information set in the builder object.
|
PlayHistory.Builder |
setContext(Context context)
The context setter.
|
PlayHistory.Builder |
setPlayedAt(Date playedAt)
The played at date setter.
|
PlayHistory.Builder |
setTrack(TrackSimplified track)
The track setter.
|
public PlayHistory.Builder setTrack(TrackSimplified track)
track - The track the user listened to.PlayHistory.Builder.public PlayHistory.Builder setPlayedAt(Date playedAt)
playedAt - The date and time the track was played.PlayHistory.Builder.public PlayHistory.Builder setContext(Context context)
context - The context the track was played from.PlayHistory.Builder.public PlayHistory build()
IModelObject.BuilderCopyright © 2020. All rights reserved.