Class PlaylistTrack.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setAddedAt

        public PlaylistTrack.Builder setAddedAt​(Date addedAt)
        Set the "added at" date of the playlist track to be built.
        Parameters:
        addedAt - The date and time the track or episode was added.
        Returns:
        A PlaylistTrack.Builder.
      • setAddedBy

        public PlaylistTrack.Builder setAddedBy​(User addedBy)
        Set the user who added the track or episode to the playlist.
        Parameters:
        addedBy - The Spotify user who added the track or episode.
        Returns:
        A PlaylistTrack.Builder.
      • build

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