From 1e54dab2a3df47eac467aed6fbb01331d907e1ca Mon Sep 17 00:00:00 2001 From: ShebangDog Date: Tue, 1 Sep 2020 14:52:42 +0900 Subject: [PATCH] =?UTF-8?q?Repository=E3=81=AE=E5=AE=9F=E8=A3=85(room?= =?UTF-8?q?=E3=81=AE=E3=81=BF=E3=82=92=E6=83=B3=E5=AE=9A=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/jp/co/cyberagent/dojo2020/data/Repository.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/jp/co/cyberagent/dojo2020/data/Repository.kt b/app/src/main/java/jp/co/cyberagent/dojo2020/data/Repository.kt index 5f52d3f2..259b5ebf 100644 --- a/app/src/main/java/jp/co/cyberagent/dojo2020/data/Repository.kt +++ b/app/src/main/java/jp/co/cyberagent/dojo2020/data/Repository.kt @@ -3,12 +3,16 @@ package jp.co.cyberagent.dojo2020.data import jp.co.cyberagent.dojo2020.data.model.Memo import kotlinx.coroutines.flow.Flow -class Repository(private val localDataSource: DataSource, private val remoteDataSource: DataSource) : DataSource { +class Repository( + private val localDataSource: DataSource, + private val remoteDataSource: DataSource +) : DataSource { + override suspend fun save(memo: Memo) { - TODO("Not yet implemented") + localDataSource.save(memo) } override suspend fun fetchAll(): Flow> { - TODO("Not yet implemented") + return localDataSource.fetchAll() } } \ No newline at end of file