kyleg
01/26/2020, 10:07 PMdata class Foo(val x: Int, val y: String)
@Dao interface MyDao {
@Query("...")
private suspend fun _getData(x: Int, y: String): Int
suspend fun getData(foo: Foo) = _getData(foo.x, foo.y)
}
But I get an error when trying to build my project:
error: MyDao_Impl is not abstract and does not override abstract method getData(......
How do I resolve this without forcing a non-DAO function to do the unwrapping?kyleg
01/26/2020, 10:18 PM@Dao interface MyDao {
@Query("..")
suspend fun getData(x: Int, y: String): Int
}
suspend fun MyDao.getData(foo: Foo) =
getData(foo.x, foo.y)
Mark Murphy
01/27/2020, 12:10 AM