-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ 러닝 레포지토리 구현 (getCurrentRunnerCount)
Co-authored-by: yonghanJu <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
data/src/main/java/com/whyranoid/data/running/RunningRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Int> { | ||
return runningDataSource.getCurrentRunnerCount() | ||
} | ||
|
||
override suspend fun startRunning(uid: String): Boolean { | ||
return true | ||
} | ||
|
||
override suspend fun finishRunning(uid: String): Boolean { | ||
return true | ||
} | ||
} |