Class SavedEpisode.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.SavedEpisode.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
SavedEpisode
Builder class for building
SavedEpisode
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAddedAt
(Date addedAt) Set the "added at" date of the saved episode to be built.setEpisode
(Episode episode) Set the full episode object of the saved episode to be built.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAddedAt
Set the "added at" date of the saved episode to be built.- Parameters:
addedAt
- The date and time the episode was saved.- Returns:
- A
SavedEpisode.Builder
.
-
setEpisode
Set the full episode object of the saved episode to be built.- Parameters:
episode
- Information about the episode.- Returns:
- A
SavedEpisode.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.
-