Rewriting classes in kotlin

This commit is contained in:
antonio 2023-03-02 10:48:30 +01:00
parent 74ec37cb5e
commit 103cd308de
43 changed files with 818 additions and 2325 deletions

View file

@ -60,10 +60,6 @@ public class MappingUtil {
return new Album(albumWithSongsID3);
}
public static Album mapAlbum(AlbumInfo albumInfo) {
return new Album(albumInfo);
}
public static ArrayList<Artist> mapArtist(List<ArtistID3> artistID3List) {
ArrayList<Artist> artists = new ArrayList();
@ -173,7 +169,7 @@ public class MappingUtil {
ArrayList<Playlist> playlists = new ArrayList();
for (Download download : downloads) {
playlists.add(new Playlist(download.getPlaylistId(), download.getPlaylistName()));
playlists.add(new Playlist(download.getPlaylistId(), download.getPlaylistName(), null, 0, 0, null));
}
return playlists;