FirebaseJetpack

@Serializable
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)

Represents a Jetpack stored in Firebase.

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), name: String = String(), price: Double = 0.0, userId: String = String(), lastUpdated: Long = 0, lastSynced: Long = 0, deleted: Boolean = false)

Properties

Link copied to clipboard

Flag indicating if the Jetpack is marked for deletion (soft delete). Defaults to false.

Link copied to clipboard
val id: String

Unique identifier of the Jetpack.

Link copied to clipboard

Timestamp (milliseconds) of last sync. Defaults to 0L.

Link copied to clipboard

Timestamp (milliseconds) of last modification. Defaults to 0L.

Link copied to clipboard

Jetpack's name.

Link copied to clipboard

Jetpack's price.

Link copied to clipboard

User's unique identifier. Defaults to an empty string.