Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ScreenResponse(val id: String, val tiles: SerializableImmutableList<TileSchema>, val navigationDrawerTiles: SerializableImmutableList<TileSchema>?, val events: SerializableImmutableList<EventSchema>?, val ttl: String? = null)

The raw wire shape of a screen fetch response, decoded directly from the backend's JSON — what mosaic-server's Screen { } builder produces. Converted to a dev.catbit.mosaic.core.data.models.screen.ScreenModel via ScreenModel.fromScreenResponse before the client installs it; that conversion is also where id/ttl are consumed and dropped — dev.catbit.mosaic.core.data.models.screen.ScreenModel carries neither field, since by the time a screen is being installed its id is already known (it's the screen currently being loaded) and its cache freshness has already been decided by the repository layer.