Jetpack
data class Jetpack(val id: String = UUID.randomUUID().toString(), val name: String = String(), val price: Double = 0.0, val lastUpdated: Long = System.currentTimeMillis(), val lastSynced: Long = 0, val needsSync: Boolean = true, val formattedDate: String = lastUpdated.asFormattedDateTime())
Data class representing a Jetpack.
Parameters
id
The unique identifier of the Jetpack.
name
The name of the Jetpack.
price
The price of the Jetpack.
lastUpdated
The last updated timestamp of the Jetpack.
lastSynced
The last synced timestamp of the Jetpack.
needsSync
The sync status of the Jetpack.
formattedDate
The formatted date of the Jetpack.
Constructors
Functions
Link copied to clipboard
Extension function to map a Jetpack to a FirebaseJetpack.
Link copied to clipboard
Extension function to map a Jetpack to a JetpackEntity.