IModelObject.Builderpublic static final class PlayHistory.Builder extends AbstractModelObject.Builder
PlayHistory instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | 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 © 2019. All rights reserved.