Class ResumePoint.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.ResumePoint.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
ResumePoint
Builder class for building
ResumePoint
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setFullyPlayed
(Boolean fullyPlayed) Set whether the episode has been fully played by the user.setResumePositionMs
(Integer resumePositionMs) Set the user’s most recent position in the episode in milliseconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setFullyPlayed
Set whether the episode has been fully played by the user.- Parameters:
fullyPlayed
-true
if episode has been fully played by the user.- Returns:
- A
ResumePoint.Builder
.
-
setResumePositionMs
Set the user’s most recent position in the episode in milliseconds.- Parameters:
resumePositionMs
- The user’s most recent position in the episode in milliseconds.- Returns:
- A
ResumePoint.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build 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.
-