FirebaseDataSource

Firestore operations under /dev.atick.jetpack/{userId}/jetpacks/{documentId}.

The repository owns Room persistence, pending metadata, and push/pull ordering. These calls propagate SDK failures; they do not resolve conflicts or acknowledge local rows.

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun createJetpack(firebaseJetpack: FirebaseJetpack)

Adds a document with a Firestore-generated ID, independent of FirebaseJetpack.id.

Link copied to clipboard
abstract suspend fun createOrUpdateJetpack(firebaseJetpack: FirebaseJetpack)

Creates or replaces the document identified by the model's userId and id using set(), without merge.

Link copied to clipboard
abstract suspend fun deleteJetpack(firebaseJetpack: FirebaseJetpack)

Hard-deletes the document identified by the model's userId and id.

Link copied to clipboard
abstract suspend fun pullJetpacks(userId: String, syncedAfterNanos: Long): List<FirebaseJetpack>

Queries documents whose FirebaseJetpack.serverUpdatedAt is greater than syncedAfterNanos.