Package org.localify.playlist
Interface PlaylistService
- All Known Implementing Classes:
PlaylistServiceImpl
public interface PlaylistService
Service interface for handling playlist-related operations.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateCityPlaylist(UUID cityId) Creates or updates a city playlist.createOrUpdateUserCityPlaylist(UUID userId, UUID cityId, List<RecommendedArtistDto> recs, int localPerSeed, boolean useSeedSong) Creates or updates a user's city playlist.createOrUpdateUserFestivalPlaylist(UUID userId, UUID festivalId, List<RecommendedFestivalArtistDto> recs, int localPerSeed, boolean useSeedSong) Creates or updates a user's festival playlist.createOrUpdateVenuePlaylist(UUID venueId) Creates or updates a venue playlist.voidsaveNonUserPlaylistToSpotify(Playlist playlist) Saves a non-user playlist to Spotify.voidsavePlaylistToSpotify(Playlist playlist, UUID userId) Saves a playlist to Spotify for a user.
-
Method Details
-
createOrUpdateUserCityPlaylist
Playlist createOrUpdateUserCityPlaylist(UUID userId, UUID cityId, List<RecommendedArtistDto> recs, int localPerSeed, boolean useSeedSong) Creates or updates a user's city playlist.- Parameters:
userId- The ID of the user.cityId- The ID of the city.recs- A list of recommended artists.localPerSeed- The number of local artists to include per seed artist.useSeedSong- Whether to include a song from the seed artist.- Returns:
- The created or updated playlist.
-
createOrUpdateUserFestivalPlaylist
Playlist createOrUpdateUserFestivalPlaylist(UUID userId, UUID festivalId, List<RecommendedFestivalArtistDto> recs, int localPerSeed, boolean useSeedSong) Creates or updates a user's festival playlist.- Parameters:
userId- The ID of the user.festivalId- The ID of the festival.recs- A list of recommended festival artists.localPerSeed- The number of local artists to include per seed artist.useSeedSong- Whether to include a song from the seed artist.- Returns:
- The created or updated playlist.
-
savePlaylistToSpotify
Saves a playlist to Spotify for a user.- Parameters:
playlist- The playlist to save.userId- The ID of the user.
-
createOrUpdateCityPlaylist
Creates or updates a city playlist.- Parameters:
cityId- The ID of the city.- Returns:
- The created or updated playlist.
-
createOrUpdateVenuePlaylist
Creates or updates a venue playlist.- Parameters:
venueId- The ID of the venue.- Returns:
- The created or updated playlist.
-
saveNonUserPlaylistToSpotify
Saves a non-user playlist to Spotify.- Parameters:
playlist- The playlist to save.
-