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,
parentColumn = "songId",
entityColumn = "artistId"
)
),
projection = ["id", "name"]
)
val artists: List<Artist>?
val artists: List<Info>?
) {
val formattedTotalPlayTime: String
get() {

View file

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

View file

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