Do not return unused artist info in DetailedSong

This commit is contained in:
vfsfitvnm 2022-09-03 19:38:48 +02:00
parent 8ae7bd96f5
commit 92b3cc2b33
3 changed files with 10 additions and 3 deletions

View file

@ -27,9 +27,10 @@ open class DetailedSong(
value = SongArtistMap::class, value = SongArtistMap::class,
parentColumn = "songId", parentColumn = "songId",
entityColumn = "artistId" entityColumn = "artistId"
),
projection = ["id", "name"]
) )
) val artists: List<Info>?
val artists: List<Artist>?
) { ) {
val formattedTotalPlayTime: String val formattedTotalPlayTime: String
get() { get() {

View file

@ -12,7 +12,7 @@ class DetailedSongWithContentLength(
thumbnailUrl: String?, thumbnailUrl: String?,
totalPlayTimeMs: Long = 0, totalPlayTimeMs: Long = 0,
albumId: String?, albumId: String?,
artists: List<Artist>?, artists: List<Info>?,
@Relation( @Relation(
entity = Format::class, entity = Format::class,
entityColumn = "songId", entityColumn = "songId",

View file

@ -0,0 +1,6 @@
package it.vfsfitvnm.vimusic.models
data class Info(
val id: String,
val name: String
)