IModelObject.Builderpublic static final class PlaylistTrack.Builder extends AbstractModelObject.Builder
PlaylistTrack instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
PlaylistTrack |
build() |
Build a model object with the information set in the builder object.
|
PlaylistTrack.Builder |
setAddedAt(Date addedAt) |
Set the "added at" date of the playlist track to be built.
|
PlaylistTrack.Builder |
setAddedBy(User addedBy) |
Set the user who added the track to the playlist.
|
PlaylistTrack.Builder |
setIsLocal(Boolean isLocal) |
Set whether the track to be built is local or not.
|
PlaylistTrack.Builder |
setTrack(Track track) |
Set the full track object of the playlist track to be built.
|
public PlaylistTrack.Builder setAddedAt(Date addedAt)
addedAt - The date and time the track was added.PlaylistTrack.Builder.public PlaylistTrack.Builder setAddedBy(User addedBy)
addedBy - The Spotify user who added the track.PlaylistTrack.Builder.public PlaylistTrack.Builder setIsLocal(Boolean isLocal)
isLocal - Whether this track is a local file or not.PlaylistTrack.Builder.public PlaylistTrack.Builder setTrack(Track track)
track - Information about the track.PlaylistTrack.Builder.public PlaylistTrack build()
IModelObject.BuilderCopyright © 2019. All rights reserved.