Added starred tracks, starred albums and starred artists view

This commit is contained in:
CappielloAntonio 2021-07-27 16:58:38 +02:00
parent 9495fbd83d
commit 7742cbdd08
23 changed files with 752 additions and 171 deletions

View file

@ -9,6 +9,8 @@ import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import com.cappielloantonio.play.subsonic.models.ArtistID3;
import java.util.ArrayList;
import java.util.List;
@ -51,6 +53,13 @@ public class Artist implements Parcelable {
this.backdropBlurHash = backdropBlurHash;
}
public Artist(ArtistID3 artistID3) {
this.id = artistID3.getId();
this.name = artistID3.getName();
this.primary = artistID3.getCoverArtId();
this.backdrop = artistID3.getCoverArtId();
}
@Ignore
public Artist(String id, String name) {
this.id = id;