This commit is contained in:
2026-09-02 23:47:00 +03:00
parent b4d0b0c8e9
commit a8830bcd91
77 changed files with 2998 additions and 0 deletions
@@ -0,0 +1,18 @@
package agzam.vyatsu.data.local
import androidx.room.Dao
import androidx.room.Query
@Dao
interface PreferencesDao {
@Query("SELECT value FROM preferences WHERE key = 'selectedGroupId'")
suspend fun selectedGroupId(): String?
@Query(
"INSERT OR REPLACE INTO preferences(key, value) VALUES('selectedGroupId', :groupId)"
)
suspend fun setSelectedGroup(groupId: String)
@Query("DELETE FROM preferences WHERE key = 'selectedGroupId'")
suspend fun clearSelectedGroup()
}