First implementation of the panel dedicated to the download, divided by type of the downloaded resource

This commit is contained in:
CappielloAntonio 2021-08-28 16:54:12 +02:00
parent 8789b44e26
commit 23568bae9b
16 changed files with 609 additions and 102 deletions

View file

@ -52,6 +52,14 @@ public class Album implements Parcelable {
this.songs = MappingUtil.mapSong(albumWithSongsID3.getSongs());
}
public Album(Download download) {
this.id = download.getAlbumId();
this.title = download.getAlbumName();
this.artistId = download.getArtistId();
this.artistName = download.getArtistName();
this.primary = download.getPrimary();
}
public Album(AlbumInfo info) {
this.notes = info.getNotes();
}

View file

@ -76,6 +76,11 @@ public class Artist implements Parcelable {
this.name = name;
}
public Artist(Download download) {
this.id = download.getArtistId();
this.name = download.getArtistName();
}
public String getId() {
return id;
}