Do not return unused fields in DetailedSong

This commit is contained in:
vfsfitvnm
2022-08-03 21:09:08 +02:00
parent 194864bcb4
commit 61c8552ad0
12 changed files with 68 additions and 58 deletions

View File

@@ -3,7 +3,13 @@ package it.vfsfitvnm.vimusic.models
import androidx.room.Relation
class DetailedSongWithContentLength(
song: Song,
id: String,
title: String,
artistsText: String? = null,
durationText: String,
thumbnailUrl: String?,
likedAt: Long? = null,
totalPlayTimeMs: Long = 0,
albumId: String?,
artists: List<Artist>?,
@Relation(
@@ -13,4 +19,4 @@ class DetailedSongWithContentLength(
projection = ["contentLength"]
)
val contentLength: Long?
) : DetailedSong(song, albumId, artists)
) : DetailedSong(id, title, artistsText, durationText, thumbnailUrl, likedAt, totalPlayTimeMs, albumId, artists)