mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
First implementation of the panel dedicated to the download, divided by type of the downloaded resource
This commit is contained in:
parent
8789b44e26
commit
23568bae9b
16 changed files with 609 additions and 102 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue