feat: report download status in the mood detail
The client can show a per-track Downloading/Added/Failed state in search instead of relying on a snackbar under the keyboard.
This commit is contained in:
1 parent
de1e95bfc6
commit
6763a83b03
4 files changed
+35
-4
No files matched your search
@@ -131,6 +131,18 @@ data class MoodDetailDto(
|
||||
val mood: MoodDto,
|
||||
val songs: List<MoodSongDto> = emptyList(),
|
||||
val recommendations: List<RecommendationDto> = emptyList(),
|
||||
/** In-flight and recent downloads, so the client can show a per-track status. */
|
||||
val downloads: List<DownloadStatusDto> = emptyList(),
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class DownloadStatusDto(
|
||||
val source: String,
|
||||
val externalId: String,
|
||||
val state: String,
|
||||
val attempts: Int = 0,
|
||||
val error: String? = null,
|
||||
val songId: String? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
|
||||
Reference in new issue
Block a user