public interface MusicTypeConverter
Converts music types from one service provider to another. Often times, a conversion is not possible. Examples of
this include a playlist that is only available on Spotify, or an album that is only available on Last.fm. The most
important example of this is typically converting a track from one service provider to another, to allow, for
instance, playing tracks from Last.Fm on Spotify.
Multiple types may be given to each method, one for every service provider that the type is available on currently. There will always be at least one in the list, so
Multiple types may be given to each method, one for every service provider that the type is available on currently. There will always be at least one in the list, so
List.getFirst() may be used.-
Method Summary
Modifier and TypeMethodDescriptionconvertAlbum(List<Album> albums) Converts an album from one service provider to another.convertArtist(List<Artist> artists) Converts an artist from one service provider to another.convertPlaylist(List<Playlist> playlists) Converts a playlist from one service provider to another.convertTrack(List<Track> tracks) Converts a track from one service provider to another.convertUser(List<User> users) Converts a user from one service provider to another.
-
Method Details
-
convertTrack
Converts a track from one service provider to another. The same track from other service providers is the `tracks` parameter.- Parameters:
tracks- The tracks to convert. These originate from other service providers- Returns:
- The created track in the current service provider's implementation
-
convertAlbum
-
convertArtist
-
convertPlaylist
-
convertUser
-