feat(android): add HomeTile model for per-tile hydration
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.fabledsword.minstrel.models
|
||||
|
||||
/**
|
||||
* A Home section entry: the stable entity [id] (always known from the
|
||||
* cached_home_index) paired with its hydrated [value], or null while the
|
||||
* entity row hasn't landed in Room yet. The UI renders a skeleton tile
|
||||
* for null and the real card for non-null, keyed by [id] so the swap is
|
||||
* a content change rather than a re-key.
|
||||
*/
|
||||
data class HomeTile<out T>(val id: String, val value: T?)
|
||||
Reference in New Issue
Block a user