refactor: migrate QuickChat to Compose (#1419)

This commit is contained in:
Andre K 2024-11-19 11:59:28 -03:00 committed by GitHub
parent 4855576248
commit 475e9fc22c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 375 additions and 362 deletions

View file

@ -6,10 +6,10 @@ import androidx.room.PrimaryKey
@Entity(tableName = "quick_chat")
data class QuickChatAction(
@PrimaryKey(autoGenerate = true) val uuid: Long,
@ColumnInfo(name = "name") val name: String,
@ColumnInfo(name = "message") val message: String,
@ColumnInfo(name = "mode") val mode: Mode,
@PrimaryKey(autoGenerate = true) val uuid: Long = 0L,
@ColumnInfo(name = "name") val name: String = "",
@ColumnInfo(name = "message") val message: String = "",
@ColumnInfo(name = "mode") val mode: Mode = Mode.Instant,
@ColumnInfo(name = "position") val position: Int
) {
enum class Mode {