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

Link copied to clipboard
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())

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
val lastSynced: Long = 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val needsSync: Boolean = true
Link copied to clipboard
val price: Double = 0.0

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.