mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
feat(libraries): add size property to Library and related models for better content representation
This commit is contained in:
@@ -57,6 +57,7 @@ class AppViewModel @Inject constructor(
|
||||
name = it.name,
|
||||
type = it.type,
|
||||
posterUrl = it.posterUrl,
|
||||
size = it.size,
|
||||
isEmpty = when (it.type) {
|
||||
LibraryKind.MOVIES -> mediaCatalogReader.movies.value.isEmpty()
|
||||
LibraryKind.SERIES -> mediaCatalogReader.series.value.isEmpty()
|
||||
|
||||
@@ -8,5 +8,6 @@ data class LibraryUiModel(
|
||||
val name: String,
|
||||
val type: LibraryKind,
|
||||
val posterUrl: String,
|
||||
val size: Int,
|
||||
val isEmpty: Boolean
|
||||
)
|
||||
Reference in New Issue
Block a user