mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Added media type to class and replaced "song" with a generic "media"
This commit is contained in:
parent
eecbed2f61
commit
51cd88dd3f
9 changed files with 52 additions and 38 deletions
|
|
@ -119,7 +119,7 @@ public class Media implements Parcelable {
|
|||
}
|
||||
|
||||
public Media(Download download) {
|
||||
this.id = download.getSongID();
|
||||
this.id = download.getMediaID();
|
||||
this.title = download.getTitle();
|
||||
this.albumId = download.getAlbumId();
|
||||
this.albumName = download.getAlbumName();
|
||||
|
|
@ -128,6 +128,7 @@ public class Media implements Parcelable {
|
|||
this.trackNumber = download.getTrackNumber();
|
||||
this.coverArtId = download.getPrimary();
|
||||
this.duration = download.getDuration();
|
||||
this.type = download.getType();
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue