Class CurrentlyPlaying.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.CurrentlyPlaying.Builder
- All Implemented Interfaces:
- IModelObject.Builder
- Enclosing class:
- CurrentlyPlaying
Builder class for building 
CurrentlyPlaying instances.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build a model object with the information set in the builder object.setActions(Actions actions) The actions setter.setContext(Context context) The playing context setter.setCurrentlyPlayingType(CurrentlyPlayingType currentlyPlayingType) The currently playing type setter.setIs_playing(Boolean is_playing) The playing state setter.setItem(IPlaylistItem item) The currently playing item setter.setProgress_ms(Integer progress_ms) The current track progress setter.setTimestamp(Long timestamp) The timestamp setter.
- 
Constructor Details- 
Builderpublic Builder()Default constructor.
 
- 
- 
Method Details- 
setContextThe playing context setter.- Parameters:
- context- The context the track was played from. Can be- null.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
setTimestampThe timestamp setter.- Parameters:
- timestamp- Unix Millisecond Timestamp when data was fetched.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
setProgress_msThe current track progress setter.- Parameters:
- progress_ms- Progress into the currently playing track. Can be- null.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
setIs_playingThe playing state setter.- Parameters:
- is_playing- If something is currently playing.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
setItemThe currently playing item setter.- Parameters:
- item- The currently playing item. Can be- null.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
setCurrentlyPlayingTypeThe currently playing type setter.- Parameters:
- currentlyPlayingType- The type of the currently playing item.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
setActionsThe actions setter.- Parameters:
- actions- A- Actionsobject which contains a- Disallowsobject.
- Returns:
- A CurrentlyPlaying.Builder.
 
- 
buildDescription copied from interface:IModelObject.BuilderBuild a model object with the information set in the builder object.
 The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
 
 
-