App is now fully converted to Kotlin

This commit is contained in:
Deniz Düzgören
2019-05-26 18:40:02 +02:00
parent 44269a7def
commit abc3309acd
46 changed files with 266 additions and 3170 deletions
@@ -0,0 +1,23 @@
package com.denizd.substitutionplan
import androidx.lifecycle.LiveData
import androidx.room.*
@Dao
public interface SubstDao {
@get:Query("SELECT * FROM subst_table ORDER BY priority DESC")
val allSubst: LiveData<List<Subst>>
@Insert
fun insert(subst: Subst)
@Update
fun update(subst: Subst)
@Delete
fun delete(subst: Subst)
@Query("DELETE FROM subst_table")
fun deleteAllSubst()
}