Save in the database what has been downloaded

This commit is contained in:
CappielloAntonio 2022-01-02 11:30:16 +01:00
parent 81e9b5c3d9
commit f416bfda8f
9 changed files with 59 additions and 19 deletions

View file

@ -173,7 +173,7 @@ public class MappingUtil {
return playlists;
}
public static ArrayList<Download> mapToDownload(List<Song> songs) {
public static ArrayList<Download> mapDownload(List<Song> songs) {
ArrayList<Download> downloads = new ArrayList();
for (Song song : songs) {
@ -183,7 +183,7 @@ public class MappingUtil {
return downloads;
}
public static Download mapToDownload(Song song, String playlistId, String playlistName) {
public static Download mapDownload(Song song, String playlistId, String playlistName) {
return new Download(song, playlistId, playlistName);
}