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())(source)
Parameters
id
Item ID shared with local and remote storage.
name
Display name.
price
Numeric price.
lastUpdated
Edit time in epoch milliseconds, carried from the writing device.
lastSynced
Epoch milliseconds carried from local acknowledgement or remote mapping. It is not an acknowledgement of the current form's persistence.
needsSync
Local pending flag; the DAO also compares edit and acknowledgement times.
formattedDate
Display text derived from Jetpack.lastUpdated.