JetpackEntity

data class JetpackEntity(val id: String = UUID.randomUUID().toString(), val name: String, val price: Double, val userId: String = String(), val lastUpdated: Long = 0, val lastSynced: Long = 0, val needsSync: Boolean = false, val deleted: Boolean = false, val syncAction: SyncAction = SyncAction.NONE)

Represents a JetpackEntity, which is a data structure for storing information about a jetpack.

Constructors

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

Properties

Link copied to clipboard
val deleted: Boolean = false

A flag indicating whether the jetpack has been deleted.

Link copied to clipboard
val id: String

The unique identifier for the jetpack entity.

Link copied to clipboard
val lastSynced: Long = 0

The timestamp of the last sync operation.

Link copied to clipboard
val lastUpdated: Long = 0
Link copied to clipboard

The name of the jetpack.

Link copied to clipboard
val needsSync: Boolean = false

A flag indicating whether the jetpack needs to be synced.

Link copied to clipboard

The price of the jetpack.

Link copied to clipboard

The action to take when syncing the jetpack.

Link copied to clipboard