Jetpack
constructor(id: String = UUID.randomUUID().toString(), name: String = String(), price: Double = 0.0, lastUpdated: Long = System.currentTimeMillis(), lastSynced: Long = 0, needsSync: Boolean = true, formattedDate: String = lastUpdated.asFormattedDateTime())
Parameters
id
Unique identifier (UUID) for the Jetpack item, consistent across all layers.
name
Display name of the Jetpack library (e.g., "Compose", "Room", "Hilt").
price
Numeric value representing the item's price (demo field for CRUD operations).
lastUpdated
Unix timestamp (milliseconds) of the last local modification.
lastSynced
Unix timestamp (milliseconds) of the last successful Firebase sync.
needsSync
Boolean flag indicating if local changes haven't been synced to Firebase.
formattedDate
Human-readable date string derived from lastUpdated for UI display.