-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into release/fairer2.1
# Conflicts: # app/src/main/java/com/depromeet/housekeeper/di/NetworkModule.kt
- Loading branch information
Showing
111 changed files
with
4,171 additions
and
199 deletions.
There are no files selected for viewing
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
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
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
1 change: 0 additions & 1 deletion
1
app/src/androidTest/java/com/depromeet/housekeeper/ExampleInstrumentedTest.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
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
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
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
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/depromeet/housekeeper/data/repository/StatisticsRepository.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,25 @@ | ||
package com.depromeet.housekeeper.data.repository | ||
|
||
import com.depromeet.housekeeper.data.dataSource.RemoteDataSourceImpl | ||
import com.depromeet.housekeeper.model.response.ApiResult | ||
import com.depromeet.housekeeper.model.response.HouseWorkStatsResponse | ||
import com.depromeet.housekeeper.model.response.StatsListResponse | ||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
class StatisticsRepository constructor( | ||
private val remoteDataSource: RemoteDataSourceImpl, | ||
private val externalScope: CoroutineScope? = null | ||
) { | ||
suspend fun getStatistics(yearMonth: String): Flow<ApiResult<StatsListResponse>> = | ||
remoteDataSource.getStatsList(yearMonth) | ||
|
||
suspend fun getStatisticsRanking(yearMonth: String): Flow<ApiResult<HouseWorkStatsResponse>> = | ||
remoteDataSource.getStatsRanking(yearMonth) | ||
|
||
suspend fun getHoseWorkStatistics( | ||
houseWorkName: String, | ||
month: String | ||
): Flow<ApiResult<HouseWorkStatsResponse>> = | ||
remoteDataSource.getHouseWorkStats(houseWorkName, month) | ||
} |
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
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
Oops, something went wrong.