SyncableEntity

Implemented by local entities/rows that participate in delta sync.

A SyncEngine never mutates domain fields directly — it only reads/writes this bookkeeping envelope via withSync, so an entity's own columns are free to be anything the app needs.

Properties

Link copied to clipboard
abstract val isDeleted: Boolean
Link copied to clipboard
abstract val localUpdatedAt: Long
Link copied to clipboard
abstract val serverId: Int?
Link copied to clipboard
abstract val syncState: String
Link copied to clipboard
abstract val updatedAt: Long?

Functions

Link copied to clipboard
open fun tombstone(): T

Marks this row deleted-and-synced, used by full-snapshot tombstone reconciliation.

Link copied to clipboard
abstract fun withSync(serverId: Int?, updatedAt: Long?, isDeleted: Boolean, syncState: String): T