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
public static final class ResumePoint.Builder extends AbstractModelObject.Builder
Builder class for buildingResumePointinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResumePointbuild()Build a model object with the information set in the builder object.ResumePoint.BuildersetFullyPlayed(Boolean fullyPlayed)Set whether the episode has been fully played by the user.ResumePoint.BuildersetResumePositionMs(Integer resumePositionMs)Set the user’s most recent position in the episode in milliseconds.
-
-
-
Method Detail
-
setFullyPlayed
public ResumePoint.Builder setFullyPlayed(Boolean fullyPlayed)
Set whether the episode has been fully played by the user.- Parameters:
fullyPlayed-trueif episode has been fully played by the user.- Returns:
- A
ResumePoint.Builder.
-
setResumePositionMs
public ResumePoint.Builder setResumePositionMs(Integer resumePositionMs)
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
public ResumePoint build()
Description 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.
-
-