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 building ResumePoint instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setFullyPlayed

      public ResumePoint.Builder setFullyPlayed(Boolean fullyPlayed)
      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

      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.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.