Rewriting classes in kotlin

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

No files matched your search

@@ -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;