FirebaseJetpack
data class FirebaseJetpack(val id: String = UUID.randomUUID().toString(), val name: String = String(), val price: Double = 0.0, val userId: String = String(), val lastUpdated: Long = 0, val lastSynced: Long = 0, val deleted: Boolean = false)(source)
A Jetpack item as it is stored in Firestore, at /dev.atick.jetpack/{userId}/jetpacks/{jetpackId}.
FirebaseJetpack.lastUpdated and FirebaseJetpack.lastSynced carry device-clock milliseconds into Room, where they affect list ordering and pending-row selection. serverUpdatedAt carries the server write timestamp used by the pull cursor; it is independent of those device clocks.
Constructors
Properties
Functions
Link copied to clipboard
FirebaseJetpack.serverUpdatedAt as nanoseconds since the epoch, or 0 for a document the server has not stamped yet.