From ff992150058eff31bb0f036b10670c45ff2ec8b7 Mon Sep 17 00:00:00 2001 From: bngsh Date: Thu, 17 Nov 2022 21:01:47 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=EB=9F=AC=EB=8B=9D=20=EB=A0=88?= =?UTF-8?q?=ED=8F=AC=EC=A7=80=ED=86=A0=EB=A6=AC=20=EA=B5=AC=ED=98=84=20(ge?= =?UTF-8?q?tCurrentRunnerCount)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: yonghanJu --- .../data/running/RunningRepositoryImpl.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 data/src/main/java/com/whyranoid/data/running/RunningRepositoryImpl.kt diff --git a/data/src/main/java/com/whyranoid/data/running/RunningRepositoryImpl.kt b/data/src/main/java/com/whyranoid/data/running/RunningRepositoryImpl.kt new file mode 100644 index 00000000..23be8e73 --- /dev/null +++ b/data/src/main/java/com/whyranoid/data/running/RunningRepositoryImpl.kt @@ -0,0 +1,19 @@ +package com.whyranoid.data.running + +import com.whyranoid.data.di.running.RunningDataSource +import com.whyranoid.domain.repository.RunningRepository +import kotlinx.coroutines.flow.Flow + +class RunningRepositoryImpl(private val runningDataSource: RunningDataSource) : RunningRepository { + override fun getCurrentRunnerCount(): Flow { + return runningDataSource.getCurrentRunnerCount() + } + + override suspend fun startRunning(uid: String): Boolean { + return true + } + + override suspend fun finishRunning(uid: String): Boolean { + return true + } +}